diff --git a/packages/tpetra/core/test/Map/CMakeLists.txt b/packages/tpetra/core/test/Map/CMakeLists.txt index fcad087fed7a..059beb42a3b6 100644 --- a/packages/tpetra/core/test/Map/CMakeLists.txt +++ b/packages/tpetra/core/test/Map/CMakeLists.txt @@ -1,4 +1,4 @@ -IF (Tpetra_INST_INT_INT) + TRIBITS_ADD_EXECUTABLE_AND_TEST( Map_ProblematicLookup SOURCES @@ -8,7 +8,6 @@ TRIBITS_ADD_EXECUTABLE_AND_TEST( NUM_MPI_PROCS 2 STANDARD_PASS_OUTPUT ) -ENDIF() # tjf 20 Oct 2016 modified to use default LO, GO types TRIBITS_ADD_EXECUTABLE_AND_TEST( diff --git a/packages/tpetra/core/test/Map/Map_ProblematicLookup.cpp b/packages/tpetra/core/test/Map/Map_ProblematicLookup.cpp index e8aa7f7f8403..f58c0fcceedd 100644 --- a/packages/tpetra/core/test/Map/Map_ProblematicLookup.cpp +++ b/packages/tpetra/core/test/Map/Map_ProblematicLookup.cpp @@ -41,14 +41,10 @@ // @HEADER */ -#include - -#ifdef HAVE_TPETRA_INST_INT_INT - -#include -#include -#include -#include +#include "Teuchos_UnitTestHarness.hpp" +#include "Teuchos_Tuple.hpp" +#include "Tpetra_DefaultPlatform.hpp" +#include "Tpetra_Map.hpp" using Teuchos::RCP; using Teuchos::Array; @@ -78,14 +74,19 @@ TEUCHOS_UNIT_TEST( Map, ProblematicLookup ) comm->barrier (); comm->barrier (); // Just to make sure output finishes. - RCP > map; + typedef Tpetra::Map<> map_type; + typedef map_type::local_ordinal_type LO; + typedef map_type::global_ordinal_type GO; + typedef int rank_type; + + RCP map; if (myRank == 0) { - Array gids( tuple(1) ); - map = Tpetra::createNonContigMap( gids().getConst() , comm ); + Array gids (tuple (1)); + map = Tpetra::createNonContigMap (gids ().getConst () , comm); } else { - Array gids( tuple(3) ); - map = Tpetra::createNonContigMap( gids().getConst() , comm ); + Array gids (tuple (3)); + map = Tpetra::createNonContigMap (gids ().getConst (), comm); } { @@ -100,8 +101,8 @@ TEUCHOS_UNIT_TEST( Map, ProblematicLookup ) cerr << os.str (); } - Array nodeIDs( 1 ); - Tpetra::LookupStatus lookup = map->getRemoteIndexList( tuple(2), nodeIDs() ); + Array processRanks (1); + Tpetra::LookupStatus lookup = map->getRemoteIndexList (tuple (2), processRanks ()); { std::ostringstream os; @@ -117,7 +118,6 @@ TEUCHOS_UNIT_TEST( Map, ProblematicLookup ) TEST_EQUALITY_CONST( map->isDistributed(), true ) TEST_EQUALITY_CONST( map->isContiguous(), false ) TEST_EQUALITY_CONST( lookup, Tpetra::IDNotPresent ) - TEST_COMPARE_ARRAYS( nodeIDs(), tuple(-1) ); + TEST_COMPARE_ARRAYS( processRanks(), tuple(-1) ); } -#endif // HAVE_TPETRA_INST_INT_INT