35#ifdef HAVE_AMESOS_EPETRAEXT
36 int NumMyElements = OriginalMap.NumMyElements();
37#ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
38 if(OriginalMap.GlobalIndicesInt()) {
39 int NumGlobalElements = OriginalMap.NumGlobalElements();
40 StdIndexMap_ = rcp(
new Epetra_Map( NumGlobalElements, NumMyElements, 0, OriginalMap.Comm() ) );
44#ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
45 if(OriginalMap.GlobalIndicesLongLong()) {
46 long long NumGlobalElements = OriginalMap.NumGlobalElements64();
47 StdIndexMap_ = rcp(
new Epetra_Map( NumGlobalElements, NumMyElements, 0LL, OriginalMap.Comm() ) );
51 throw "Amesos_StandardIndex::Amesos_StandardIndex: ERROR, GlobalIndices type unknown.";
53 MatTrans_ = rcp(
new EpetraExt::CrsMatrix_Reindex( *StdIndexMap_ ) );
54 VecTrans_ = rcp(
new EpetraExt::MultiVector_Reindex( *StdIndexMap_ ) );