Skip to content

Commit

Permalink
Xpetra: MapFactory - ETI - branch testing & checkpoint 2019-08-17 (v002)
Browse files Browse the repository at this point in the history
  • Loading branch information
William McLendon committed Aug 17, 2019
1 parent 22180ca commit 6e35f3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/xpetra/src/Map/Xpetra_MapFactory_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ createLocalMap(UnderlyingLib lib,
#if __GNUC__ >= 5
return rcp(new Xpetra::TpetraMap<LocalOrdinal,GlobalOrdinal,Node>(Tpetra::createLocalMap<LocalOrdinal,GlobalOrdinal>(numElements, comm)));
#else
// WCMCLEN - SCAFFOLDING - EXPERIMENTAL - ETI - 2019-08-17
// - Maybe use the Tpetra::createLocalMapWithNode variant here instead of throwing?
// Since I'm not sure on the intent here, but it's clear that mixing-and-matching
// Node types is bad so we can't do that. I'm also open to a preprocessor-level
// check on node types (if possible) but that the 4.8.4 compiler is even trying
// distubing. Possible CMake fail? Tpetra deprecations getting this? Maybe
// hing never *actually* compiled the way we thought it did in the pre-ETI
// uration?
throw std::runtime_error("Xpetra::TpetraMap::createLocalMap() fails with GCC 4.x compilers and earlier.");
#endif
}
Expand Down

0 comments on commit 6e35f3b

Please sign in to comment.