Zoltan2
|
common code used by tests More...
#include <Teuchos_UnitTestHarness.hpp>
#include <Zoltan2_Util.hpp>
#include <iostream>
#include <Tpetra_Map.hpp>
#include <TpetraCore_config.h>
#include <ErrorHandlingForTests.hpp>
#include <PrintData.hpp>
#include <UserInputForTests.hpp>
Go to the source code of this file.
Macros | |
#define | STR_VALUE(path) #path |
#define | PATH_NAME(path) STR_VALUE(path) |
#define | MEMORY_CHECK(iPrint, msg) |
#define | Z2_TEST(TEST) |
#define | Z2_TEST_THROW(code, ExceptType) Z2_TEST(TEST_THROW(code, ExceptType)) |
#define | Z2_TEST_NOTHROW(code) Z2_TEST(TEST_NOTHROW(code)) |
#define | Z2_TEST_EQUALITY(val1, val2) Z2_TEST(TEST_EQUALITY(val1, val2)) |
#define | Z2_TEST_INEQUALITY(val1, val2) Z2_TEST(TEST_INEQUALITY(val1, val2)) |
#define | Z2_TEST_ASSERT(expr) Z2_TEST(TEST_ASSERT(expr)) |
#define | Z2_TEST_EQUALITY_CONST(val1, val2) Z2_TEST(TEST_EQUALITY_CONST(val1, val2)) |
#define | Z2_TEST_INEQUALITY_CONST(val1, val2) Z2_TEST(TEST_INEQUALITY_CONST(val1, val2)) |
#define | Z2_TEST_COMPARE(val1, comp, val2) Z2_TEST(TEST_COMPARE(val1, comp, val2)) |
#define | Z2_TEST_COMPARE_ARRAYS(val1, val2) Z2_TEST(TEST_COMPARE_ARRAYS(val1, val2)) |
#define | Z2_TEST_COMPARE_FLOATING_ARRAYS(val1, val2, tol) Z2_TEST(TEST_COMPARE_FLOATING_ARRAYS(val1, val2, tol)) |
#define | Z2_TEST_FLOATING_EQUALITY(val1, val2, tol) Z2_TEST(TEST_FLOATING_EQUALITY(val1, val2, tol)) |
#define | Z2_TEST_DEVICE_HOST_VIEWS(deviceView, hostView) |
Typedefs | |
typedef Tpetra::Map::node_type | znode_t |
typedef int | zpart_t |
typedef Tpetra::Map::local_ordinal_type | zlno_t |
typedef Tpetra::Map::global_ordinal_type | zgno_t |
typedef float | zscalar_t |
Functions | |
std::string | testDataFilePath (".") |
std::string | zoltanTestDirectory (".") |
void | PrintFromRoot (const std::string &message) |
template<typename DeviceType , typename HostType > | |
void | TestDeviceHostView (const DeviceType &deviceView, const HostType &hostView) |
common code used by tests
Definition in file Zoltan2_TestHelpers.hpp.
#define STR_VALUE | ( | path | ) | #path |
Definition at line 25 of file Zoltan2_TestHelpers.hpp.
#define PATH_NAME | ( | path | ) | STR_VALUE(path) |
Definition at line 26 of file Zoltan2_TestHelpers.hpp.
#define MEMORY_CHECK | ( | iPrint, | |
msg | |||
) |
Definition at line 96 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST | ( | TEST | ) |
Definition at line 106 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_THROW | ( | code, | |
ExceptType | |||
) | Z2_TEST(TEST_THROW(code, ExceptType)) |
Definition at line 122 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_NOTHROW | ( | code | ) | Z2_TEST(TEST_NOTHROW(code)) |
Definition at line 123 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_EQUALITY | ( | val1, | |
val2 | |||
) | Z2_TEST(TEST_EQUALITY(val1, val2)) |
Definition at line 124 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_INEQUALITY | ( | val1, | |
val2 | |||
) | Z2_TEST(TEST_INEQUALITY(val1, val2)) |
Definition at line 125 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_ASSERT | ( | expr | ) | Z2_TEST(TEST_ASSERT(expr)) |
Definition at line 126 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_EQUALITY_CONST | ( | val1, | |
val2 | |||
) | Z2_TEST(TEST_EQUALITY_CONST(val1, val2)) |
Definition at line 127 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_INEQUALITY_CONST | ( | val1, | |
val2 | |||
) | Z2_TEST(TEST_INEQUALITY_CONST(val1, val2)) |
Definition at line 129 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_COMPARE | ( | val1, | |
comp, | |||
val2 | |||
) | Z2_TEST(TEST_COMPARE(val1, comp, val2)) |
Definition at line 131 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_COMPARE_ARRAYS | ( | val1, | |
val2 | |||
) | Z2_TEST(TEST_COMPARE_ARRAYS(val1, val2)) |
Definition at line 133 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_COMPARE_FLOATING_ARRAYS | ( | val1, | |
val2, | |||
tol | |||
) | Z2_TEST(TEST_COMPARE_FLOATING_ARRAYS(val1, val2, tol)) |
Definition at line 135 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_FLOATING_EQUALITY | ( | val1, | |
val2, | |||
tol | |||
) | Z2_TEST(TEST_FLOATING_EQUALITY(val1, val2, tol)) |
Definition at line 137 of file Zoltan2_TestHelpers.hpp.
#define Z2_TEST_DEVICE_HOST_VIEWS | ( | deviceView, | |
hostView | |||
) |
Definition at line 161 of file Zoltan2_TestHelpers.hpp.
typedef Tpetra::Map ::node_type znode_t |
Definition at line 21 of file Zoltan2_TestHelpers.hpp.
typedef int zpart_t |
Definition at line 69 of file Zoltan2_TestHelpers.hpp.
typedef Tpetra::Map ::local_ordinal_type zlno_t |
Definition at line 71 of file Zoltan2_TestHelpers.hpp.
typedef Tpetra::Map ::global_ordinal_type zgno_t |
Definition at line 72 of file Zoltan2_TestHelpers.hpp.
typedef float zscalar_t |
Definition at line 80 of file Zoltan2_TestHelpers.hpp.
std::string testDataFilePath | ( | "." | ) |
std::string zoltanTestDirectory | ( | "." | ) |
|
inline |
Definition at line 140 of file Zoltan2_TestHelpers.hpp.
void TestDeviceHostView | ( | const DeviceType & | deviceView, |
const HostType & | hostView | ||
) |
Definition at line 147 of file Zoltan2_TestHelpers.hpp.