26 using namespace shamsys::instance;
31 "trying to run a test with wrong number of nodes");
39 }
catch (
const std::exception &e) {
Header file describing a Node Instance.
std::uint32_t u32
32 bit unsigned integer
This header file contains utility functions related to exception handling in the code.
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
i32 world_rank()
Gives the rank of the current process in the MPI communicator.
i32 world_size()
Gives the size of the MPI communicator.
implementation details of the test library
TestResult current_test
Current test being run.
void assert_add_comment(std::string assert_name, bool v, std::string comment, SourceLocation loc=SourceLocation{})
add an assertion with a comment
i32 node_count
Node count of the test.
TestResult run()
Run the test.
void(* test_functor)()
Test function.
std::string name
Name of the test.
TestType type
Type of test.