49 #ifndef ZOLTAN2_TESTHELPERS_HPP
50 #define ZOLTAN2_TESTHELPERS_HPP
55 #include <Tpetra_Map.hpp>
60 #define STR_VALUE(path) #path
61 #define PATH_NAME(path) STR_VALUE(path)
102 #include <TpetraCore_config.h>
106 #ifdef HAVE_TPETRA_EXPLICIT_INSTANTIATION
108 # ifdef HAVE_TPETRA_DOUBLE
110 # define HAVE_EPETRA_SCALAR_TYPE
115 # if defined HAVE_TPETRA_INT_INT
118 # if defined HAVE_EPETRA_SCALAR_TYPE
119 # define HAVE_EPETRA_DATA_TYPES
121 # elif defined HAVE_TPETRA_INT_LONG
124 # elif defined HAVE_TPETRA_INT_LONG_LONG
127 # elif defined HAVE_TPETRA_INT_UNSIGNED
131 # error "Tpetra uses ETI, but no lno/gno instantiation is recognized"
134 #else // !HAVE_TPETRA_EXPLICIT_INSTANTIATION
136 # if defined TEST_STK_DATA_TYPES
140 # else // !TEST_STK_DATA_TYPES
144 # define HAVE_EPETRA_DATA_TYPES
145 # endif // TEST_STK_DATA_TYPES
147 #endif // HAVE_TPETRA_EXPLICIT_INSTANTIATION
149 #ifndef HAVE_ZOLTAN2_EPETRA
150 # undef HAVE_EPETRA_SCALAR_TYPE
151 # undef HAVE_EPETRA_DATA_TYPES
156 #define MEMORY_CHECK(iPrint, msg) \
158 long kb = Zoltan2::getProcessKilobytes(); \
159 std::cout.width(10); \
160 std::cout.fill('*'); \
161 std::cout << kb << " KB, " << msg << std::endl; \
162 std::cout.width(0); \
163 std::cout.fill(' '); \
A gathering of useful namespace methods.
Tpetra::Map::node_type znode_t
std::string zoltanTestDirectory(".")
std::string testDataFilePath(".")