Ifpack_CrsIlut.cpp

Go to the documentation of this file.
00001 /*@HEADER
00002 // ***********************************************************************
00003 // 
00004 //       Ifpack: Object-Oriented Algebraic Preconditioner Package
00005 //                 Copyright (2002) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 //@HEADER
00028 */
00029 
00030 #include "Ifpack_CrsIlut.h"
00031 #include "Epetra_Comm.h"
00032 #include "Epetra_Map.h"
00033 #include "Epetra_CrsGraph.h"
00034 #include "Epetra_CrsMatrix.h"
00035 #include "Epetra_VbrMatrix.h"
00036 #include "Epetra_RowMatrix.h"
00037 #include "Epetra_Vector.h"
00038 #include "Epetra_MultiVector.h"
00039 
00040 #ifdef HAVE_IFPACK_TEUCHOS
00041 #include <Teuchos_ParameterList.hpp>
00042 #include <ifp_parameters.h>
00043 #endif
00044 
00045 //==============================================================================
00046 Ifpack_CrsIlut::Ifpack_CrsIlut(const Ifpack_OverlapGraph * OverlapGraph, double DropTol, 
00047              double FillTol) 
00048   : Epetra_Object("Ifpack::CrsIlut"),
00049     Epetra_CompObject(),
00050     Ifpack_OverlapFactorObject(OverlapGraph),
00051     Ifpack_OverlapSolveObject(Epetra_Object::Label(), OverlapGraph->OverlapGraph().Comm()),
00052     DropTol_(DropTol),
00053     FillTol_(FillTol)
00054 {
00055 }
00056 //==============================================================================
00057 Ifpack_CrsIlut::Ifpack_CrsIlut(const Epetra_RowMatrix * UserMatrix, double DropTol, 
00058              double FillTol) 
00059   : Epetra_Object("Ifpack::CrsIlut"),
00060     Epetra_CompObject(),
00061     Ifpack_OverlapFactorObject(UserMatrix),
00062     Ifpack_OverlapSolveObject(Epetra_Object::Label(), UserMatrix->Comm()),
00063     DropTol_(DropTol),
00064     FillTol_(FillTol)
00065 {
00066 }
00067 //==============================================================================
00068 Ifpack_CrsIlut::Ifpack_CrsIlut(const Ifpack_CrsIlut & Source) 
00069   : Epetra_Object(Source),
00070     Epetra_CompObject(Source),
00071     Ifpack_OverlapFactorObject(Source),
00072     Ifpack_OverlapSolveObject(Source),
00073     DropTol_(Source.DropTol_),
00074     FillTol_(Source.FillTol_)
00075 {
00076 }
00077 
00078 #ifdef HAVE_IFPACK_TEUCHOS
00079 //==========================================================================
00080 int Ifpack_CrsIlut::SetParameters(const Teuchos::ParameterList& parameterlist,
00081           bool cerr_warning_if_unused)
00082 {
00083   Ifpack::param_struct params;
00084   params.double_params[Ifpack::fill_tolerance] = FillTol_;
00085   params.double_params[Ifpack::drop_tolerance] = DropTol_;
00086 
00087   Ifpack::set_parameters(parameterlist, params, cerr_warning_if_unused);
00088 
00089   FillTol_ = params.double_params[Ifpack::fill_tolerance];
00090   Droptol_ = params.double_params[Ifpack::drop_tolerance];
00091 
00092   return(0);
00093 }
00094 #endif
00095 
00096 //==============================================================================
00097 int Ifpack_CrsIlut::ProcessOverlapMatrix(const Epetra_RowMatrix &A)
00098 {
00099 
00100   return(0);
00101 }
00102 //==============================================================================
00103 int Ifpack_CrsIlut::DerivedFactor()
00104 {
00105 
00106   return(0);
00107 }

Generated on Thu Sep 18 12:37:21 2008 for Ifpack Package Browser (Single Doxygen Collection) by doxygen 1.3.9.1