// -- FACTORY METHODS -- static Epetra_Map epetraMap( DataMap const& dmap ) { std::vector<int> e( dmap.nMyElements() ); std::copy( dmap.myGlobalElements().begin(), dmap.myGlobalElements().end(), e.begin() ); return Epetra_Map( -1, dmap.nMyElements(), e.data(), 0, Epetra_MpiComm( dmap.comm() ) ); }
static Epetra_Map epetraMapStatic( DataMap const& dmap ) { return Epetra_Map( dmap.nGlobalElements(), dmap.nMyElements(), 0, Epetra_MpiComm( dmap.comm() ) ); }