|
Zoltan2
|
#include <Zoltan2_config.h>#include <iostream>#include <string>#include <exception>#include <Teuchos_RCP.hpp>#include <Teuchos_Comm.hpp>#include <Teuchos_CommHelpers.hpp>

Go to the source code of this file.
Defines | |
| #define | TEST_FAIL_AND_THROW(comm, ok, s) |
| #define | TEST_FAIL_AND_EXIT(comm, ok, s, code) |
| #define | TEST_FAIL_AND_RETURN(comm, ok, s) |
| #define | TEST_FAIL_AND_RETURN_VALUE(comm, ok, s, rc) |
Functions | |
| int | globalFail (const RCP< const Comm< int > > &comm, int fail) |
| void | printFailureCode (const RCP< const Comm< int > > &comm, int fail) |
| #define TEST_FAIL_AND_THROW | ( | comm, | |
| ok, | |||
| s | |||
| ) |
if (!(ok)){ \
throw std::runtime_error(std::string(s)); \
}
Definition at line 113 of file ErrorHandlingForTests.hpp.
| #define TEST_FAIL_AND_EXIT | ( | comm, | |
| ok, | |||
| s, | |||
| code | |||
| ) |
if (!(ok)){ \ std::cerr << "Error: " << s << std::endl;\ std::cout << "Error: " << s << std::endl;\ std::cout << "FAIL" << std::endl;\ exit(code);\ }
Definition at line 118 of file ErrorHandlingForTests.hpp.
| #define TEST_FAIL_AND_RETURN | ( | comm, | |
| ok, | |||
| s | |||
| ) |
if (!(ok)){ \ std::cerr << "Error: " << s << std::endl;\ std::cout << "Error: " << s << std::endl;\ std::cout << "FAIL" << std::endl;\ return;\ }
Definition at line 126 of file ErrorHandlingForTests.hpp.
| #define TEST_FAIL_AND_RETURN_VALUE | ( | comm, | |
| ok, | |||
| s, | |||
| rc | |||
| ) |
if (!(ok)){ \ std::cerr << "Error: " << s << std::endl;\ std::cout << "Error: " << s << std::endl;\ std::cout << "FAIL" << std::endl;\ return (rc);\ }
Definition at line 134 of file ErrorHandlingForTests.hpp.
| int globalFail | ( | const RCP< const Comm< int > > & | comm, |
| int | fail | ||
| ) |
Definition at line 143 of file ErrorHandlingForTests.hpp.
| void printFailureCode | ( | const RCP< const Comm< int > > & | comm, |
| int | fail | ||
| ) |
Definition at line 150 of file ErrorHandlingForTests.hpp.
1.7.6.1