00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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 }