56 template<
class GlobalOrdinal>
59 return *(epetraGraph->getEpetra_CrsGraph());
62 template<
class EpetraGlobalOrdinal>
71 template<
class EpetraGlobalOrdinal>
80 template<
class EpetraGlobalOrdinal>
88 template<
class EpetraGlobalOrdinal>
92 int* indices_rawPtr =
const_cast<int*
>(indices.
getRawPtr());
96 template<
class EpetraGlobalOrdinal>
103 XPETRA_ERR_CHECK(graph_->ExtractGlobalRowView(GlobalRow, numEntries, eIndices));
104 if (numEntries == 0) { eIndices = NULL; }
109 template<
class EpetraGlobalOrdinal>
117 if (numEntries == 0) { eIndices = NULL; }
122 template<
class EpetraGlobalOrdinal>
127 bool doOptimizeStorage =
true;
128 if (params != null && params->
get(
"Optimize Storage",
true) ==
false) doOptimizeStorage =
false;
129 if (doOptimizeStorage) graph_->OptimizeStorage();
132 template<
class EpetraGlobalOrdinal>
136 graph_->FillComplete();
137 bool doOptimizeStorage =
true;
138 if (params != null && params->
get(
"Optimize Storage",
true) ==
false) doOptimizeStorage =
false;
139 if (doOptimizeStorage) graph_->OptimizeStorage();
142 template<
class EpetraGlobalOrdinal>
145 template<
class EpetraGlobalOrdinal>
149 out <<
"EpetraCrsGraphT::describe : Warning, verbosity level is ignored by this method." << std::endl;
150 const Epetra_BlockMap rowmap = graph_->RowMap();
151 if (rowmap.Comm().MyPID() == 0) out <<
"** EpetraCrsGraphT **\n\nrowmap" << std::endl;
157 template<
class GlobalOrdinal>
163 Teuchos::rcp_const_cast<Epetra_CrsGraph> (const_graph);
169 template<
class EpetraGlobalOrdinal>
178 int err = graph_->Import(*v, *tImporter.getEpetra_Import(),
toEpetra(CM));
182 template<
class EpetraGlobalOrdinal>
191 int err = graph_->Export(*v, *tImporter.getEpetra_Import(),
toEpetra(CM));
195 template<
class EpetraGlobalOrdinal>
204 int err = graph_->Import(*v, *tExporter.getEpetra_Export(),
toEpetra(CM));
209 template<
class EpetraGlobalOrdinal>
218 int err = graph_->Export(*v, *tExporter.getEpetra_Export(),
toEpetra(CM));
222 #ifndef XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES 228 #ifndef XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES template const Epetra_CrsGraph & toEpetra< long long >(const RCP< const CrsGraph< int, long long > > &graph)
template RCP< const CrsGraph< int, long long > > toXpetra< long long >(const Epetra_CrsGraph &g)
void getLocalRowView(LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const
Return a const, nonpersisting view of local indices in the given row.
void getGlobalRowView(GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const
Return a const, nonpersisting view of global indices in the given row.
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal > > &graph)
T & get(const std::string &name, T def_value)
EpetraCrsGraphT(const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > ¶ms=null)
Constructor specifying fixed number of entries for each row.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
RCP< const CrsGraph< int, GlobalOrdinal > > toXpetra(const Epetra_CrsGraph &g)
template const Epetra_CrsGraph & toEpetra< int >(const RCP< const CrsGraph< int, int > > &graph)
std::string description() const
Return a simple one-line description of this object.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
#define XPETRA_ERR_CHECK(arg)
void insertGlobalIndices(GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices)
Insert global indices into the graph.
EpetraGlobalOrdinal GlobalOrdinal
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print the object with some verbosity level to an FancyOStream object.
template RCP< const CrsGraph< int, int > > toXpetra< int >(const Epetra_CrsGraph &g)
void doImport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Import.
#define XPETRA_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
void fillComplete(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > ¶ms=null)
Signal that data entry is complete, specifying domain and range maps.
void doExport(const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Export.
CombineMode
Xpetra::Combine Mode enumerable type.
#define XPETRA_MONITOR(funcName)
void insertLocalIndices(const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices)
Insert local indices into the graph.