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_;
80#ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
83 NewRowMap_ =
new Epetra_Map( NumGlobalElements, NumMyElements, 0, OldRowMap.
Comm() );
87#ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
89 long long NumGlobalElements = OldRowMap.NumGlobalElements64();
90 NewRowMap_ =
new Epetra_Map( NumGlobalElements, NumMyElements, 0LL, OldRowMap.
Comm() );
94 throw "LinearProblem_Reindex::operator(): GlobalIndices type unknown for OldRowMap";
96 NewRowMapOwned_ =
true;
Given an Epetra_CrsMatrix, a "reindexed" version is returned based on the new row map.
NewTypeRef operator()(OriginalTypeRef orig)
Constructs a new view the original LP, "reindexed" using the given NewRowMap.
~LinearProblem_Reindex()
Destructor.
Given an input Epetra_MultiVector, a "reindexed" view is returned.
bool GlobalIndicesInt() const
int NumGlobalElements() const
const Epetra_Comm & Comm() const
int NumMyElements() const
bool GlobalIndicesLongLong() const
const Epetra_BlockMap & Map() const
EpetraExt::BlockCrsMatrix: A class for constructing a distributed block matrix.