47 #include <Epetra_LinearProblem.h> 48 #include <Epetra_CrsMatrix.h> 49 #include <Epetra_MultiVector.h> 50 #include <Epetra_Map.h> 59 if( MatTrans_ )
delete MatTrans_;
60 if( LHSTrans_ )
delete LHSTrans_;
61 if( RHSTrans_ )
delete RHSTrans_;
63 if( NewRowMapOwned_ )
delete NewRowMap_;
83 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 86 NewRowMap_ =
new Epetra_Map( NumGlobalElements, NumMyElements, 0, OldRowMap.
Comm() );
90 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES 92 long long NumGlobalElements = OldRowMap.NumGlobalElements64();
93 NewRowMap_ =
new Epetra_Map( NumGlobalElements, NumMyElements, 0LL, OldRowMap.
Comm() );
97 throw "LinearProblem_Reindex2::operator(): GlobalIndices type unknown";
99 NewRowMapOwned_ =
true;
void SetLHS(Epetra_MultiVector *X)
bool fwd()
Forward transfer of data from orig object input in the operator() method call to the new object creat...
EpetraExt::BlockCrsMatrix: A class for constructing a distributed block matrix.
bool GlobalIndicesInt() const
int NumMyElements() const
NewTypeRef operator()(OriginalTypeRef orig)
Constructs a new view the original LP, "reindexed" using the given NewRowMap.
const Epetra_Comm & Comm() const
~LinearProblem_Reindex2()
Destructor.
void SetRHS(Epetra_MultiVector *B)
Epetra_MultiVector * GetRHS() const
Given an Epetra_CrsMatrix, a "reindexed" version is returned based on the new row map...
int NumGlobalElements() const
Epetra_MultiVector * GetLHS() const
Given an input Epetra_MultiVector, a "reindexed" view is returned.
bool GlobalIndicesLongLong() const
const Epetra_BlockMap & Map() const