55 #ifndef XPETRA_EPETRAMAPEXTRACTOR_HPP_
56 #define XPETRA_EPETRAMAPEXTRACTOR_HPP_
77 unsigned int numMaps = maps.size();
80 for (
unsigned i=0; i<numMaps; ++i)
82 if (maps[i]!=Teuchos::null)
85 maps_.push_back(emapi);
101 for (
unsigned i=0; i<
importer_.size(); ++i)
103 if (
maps_[i]!=Teuchos::null)
117 if (
maps_[block] == Teuchos::null)
118 std::cout <<
"null map at block" << block << std::endl;
141 if (
maps_[block] == Teuchos::null)
142 std::cout <<
"null map at block" << block << std::endl;
165 if (
maps_[block] == Teuchos::null)
166 std::cout <<
"null map at block " << block << std::endl;
190 "ExtractVector: maps_[" << block <<
"]=Teuchos::null" );
200 "ExtractVector: maps_[" << block <<
"]=Teuchos::null" );
208 if (
maps_[block] == Teuchos::null)
209 std::cout <<
"null map at block " << block << std::endl;
233 "ExtractVector: maps_[" << block <<
"]=Teuchos::null" );
243 "ExtractVector: maps_[" << block <<
"]=Teuchos::null" );
273 for(
size_t i = 0; i <
NumMaps(); i++) {
274 if(
getMap(i)->isNodeGlobalElement(gid) ==
true)
278 "getMapIndexForGID: GID " << gid <<
" is not contained by a map in mapextractor." );
287 for(
size_t i = 0; i<
NumMaps(); i++) {
292 for(it = mapGids.
begin(); it!=mapGids.
end(); it++) {
301 std::vector<Teuchos::RCP<const Xpetra::EpetraMap > >
maps_;
static RCP< Import< LocalOrdinal, GlobalOrdinal, Node > > Build(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &source, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &target)
Constructor specifying the number of non-zeros for all rows.
virtual Teuchos::ArrayView< const GlobalOrdinal > getNodeElementList() const =0
Return a view of the global indices owned by this node.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
const_pointer const_iterator
Exception throws to report errors in the internal logical of the program.
virtual bool isNodeGlobalElement(GlobalOrdinal globalIndex) const =0
True if the global index is found in this Map on this node, else false.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
void doExport(const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Export.
void doImport(const DistObject< Scalar, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
Import.
#define XPETRA_RCP_DYNAMIC_CAST(type, obj, newObj, exceptionMsg)
virtual size_t getNumVectors() const =0
Number of columns in the multivector.