main.cpp
Go to the documentation of this file.
1 
11 #define CATCH_CONFIG_RUNNER
12 #include "catch.hpp"
13 
14 #include "QuEST.h"
15 
21 
27  extern "C" void invalidQuESTInputError(const char* errMsg, const char* errFunc) {
28  throw errMsg;
29  }
30 
34 int main( int argc, char* argv[] ) {
36  int result = Catch::Session().run( argc, argv );
38  return result;
39 }
void destroyQuESTEnv(QuESTEnv env)
Destroy the QuEST environment.
QuESTEnv QUEST_ENV
The global QuESTEnv instance, to be created and destroyed once in this main(), so that the MPI enviro...
Definition: main.cpp:20
Information about the environment the program is running in.
Definition: QuEST.h:362
void invalidQuESTInputError(const char *errMsg, const char *errFunc)
Redefinition of QuEST_validation's invalidQuESTInputError function, called when a user passes an inco...
Definition: main.cpp:27
QuESTEnv createQuESTEnv(void)
Create the QuEST execution environment.
int main(int argc, char *argv[])
Explicit declaration of main to create (destroy) the QuESTEnv before (after) invoking the Catch unit ...
Definition: main.cpp:34