44 #include <Epetra_Export.h> 45 #include <Epetra_Import.h> 46 #include <Epetra_LinearProblem.h> 47 #include <Epetra_CrsGraph.h> 48 #include <Epetra_CrsMatrix.h> 49 #include <Epetra_MultiVector.h> 50 #include <Epetra_Vector.h> 51 #include <Epetra_IntVector.h> 52 #include <Epetra_Map.h> 53 #include <Epetra_Comm.h> 60 if( MatExporter_ )
delete MatExporter_;
61 if( VecExporter_ )
delete VecExporter_;
62 if( Importer_ )
delete Importer_;
64 if( NewProblem_ )
delete NewProblem_;
65 if( NewRHS_ )
delete NewRHS_;
66 if( NewLHS_ )
delete NewLHS_;
67 if( NewMatrix_ )
delete NewMatrix_;
77 OldRHS_ = orig.GetRHS();
78 OldLHS_ = orig.GetLHS();
84 if( !OldMatrix_ ) ierr = -2;
85 if( !OldRHS_ ) ierr = -3;
86 if( !OldLHS_ ) ierr = -4;
111 NewMatrix_->
Export( *OldMatrix_, *MatExporter_,
Insert );
const Epetra_Map & RowMap() const
NewTypeRef operator()(OriginalTypeRef orig)
Constructs an Epetra_LinearProblem from the original using the same row transformation given by the E...
const Epetra_CrsGraph & Graph() const
bool fwd()
Forward migration of data from original to transformed object.
const Epetra_BlockMap & RowMap() const
EpetraExt::BlockCrsMatrix: A class for constructing a distributed block matrix.
int Export(const Epetra_SrcDistObject &A, const Epetra_Import &Importer, Epetra_CombineMode CombineMode, const Epetra_OffsetIndex *Indexor=0)
bool rvs()
Reverse migration of data from transformed to original object.
~LinearProblem_GraphTrans()
EpetraExt::LinearProblem_GraphTrans Destructor.
int Import(const Epetra_SrcDistObject &A, const Epetra_Import &Importer, Epetra_CombineMode CombineMode, const Epetra_OffsetIndex *Indexor=0)