|
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) |
| #define | PATH_NAME(path) |
| #define | MEMORY_CHECK(iPrint, msg) |
| #define | Z2_TEST(TEST) |
| #define | Z2_TEST_THROW(code, ExceptType) |
| #define | Z2_TEST_NOTHROW(code) |
| #define | Z2_TEST_EQUALITY(val1, val2) |
| #define | Z2_TEST_INEQUALITY(val1, val2) |
| #define | Z2_TEST_ASSERT(expr) |
| #define | Z2_TEST_EQUALITY_CONST(val1, val2) |
| #define | Z2_TEST_INEQUALITY_CONST(val1, val2) |
| #define | Z2_TEST_COMPARE(val1, comp, val2) |
| #define | Z2_TEST_COMPARE_ARRAYS(val1, val2) |
| #define | Z2_TEST_COMPARE_FLOATING_ARRAYS(val1, val2, tol) |
| #define | Z2_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 | ) |
Definition at line 25 of file Zoltan2_TestHelpers.hpp.
| #define PATH_NAME | ( | path | ) |
Definition at line 26 of file Zoltan2_TestHelpers.hpp.
| #define MEMORY_CHECK | ( | iPrint, | |
| msg ) |
Definition at line 82 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST | ( | TEST | ) |
Definition at line 92 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_THROW | ( | code, | |
| ExceptType ) |
Definition at line 108 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_NOTHROW | ( | code | ) |
Definition at line 109 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_EQUALITY | ( | val1, | |
| val2 ) |
Definition at line 110 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_INEQUALITY | ( | val1, | |
| val2 ) |
Definition at line 111 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_ASSERT | ( | expr | ) |
Definition at line 112 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_EQUALITY_CONST | ( | val1, | |
| val2 ) |
Definition at line 113 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_INEQUALITY_CONST | ( | val1, | |
| val2 ) |
Definition at line 115 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_COMPARE | ( | val1, | |
| comp, | |||
| val2 ) |
Definition at line 117 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_COMPARE_ARRAYS | ( | val1, | |
| val2 ) |
Definition at line 119 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_COMPARE_FLOATING_ARRAYS | ( | val1, | |
| val2, | |||
| tol ) |
Definition at line 121 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_FLOATING_EQUALITY | ( | val1, | |
| val2, | |||
| tol ) |
Definition at line 123 of file Zoltan2_TestHelpers.hpp.
| #define Z2_TEST_DEVICE_HOST_VIEWS | ( | deviceView, | |
| hostView ) |
Definition at line 147 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 67 of file Zoltan2_TestHelpers.hpp.
| typedef Tpetra::Map ::local_ordinal_type zlno_t |
Definition at line 69 of file Zoltan2_TestHelpers.hpp.
| typedef Tpetra::Map ::global_ordinal_type zgno_t |
Definition at line 70 of file Zoltan2_TestHelpers.hpp.
| typedef float zscalar_t |
Definition at line 77 of file Zoltan2_TestHelpers.hpp.
| std::string testDataFilePath | ( | "." | ) |
| std::string zoltanTestDirectory | ( | "." | ) |
|
inline |
Definition at line 126 of file Zoltan2_TestHelpers.hpp.
| void TestDeviceHostView | ( | const DeviceType & | deviceView, |
| const HostType & | hostView ) |
Definition at line 133 of file Zoltan2_TestHelpers.hpp.