Example demonstrating MOAB's enhanced error handling in parallel. More...
#include "moab/MOABConfig.h"#include "moab/ErrorHandler.hpp"#include <iostream>#include <cstdlib>#include <memory>
Include dependency graph for ErrorHandlingSimulation.cpp:Go to the source code of this file.
Functions | |
| ErrorCode | FunctionC (int test_case_num, int rank) |
| ErrorCode | FunctionB (int test_case_num, int rank) |
| ErrorCode | FunctionA (int test_case_num, int rank) |
| int | main (int argc, char **argv) |
Example demonstrating MOAB's enhanced error handling in parallel.
This example shows how to:
The example demonstrates four test cases:
Description: This example simulates MOAB's enhanced error handling in parallel.
All of the errors are contrived, used for simulation purpose only.
Note: We do not need a moab instance for this example
To run: mpiexec -np 4 ./ErrorHandlingSimulation <test_case_num(1 to 4)>
| argc | Number of command line arguments |
| argv | Command line arguments array |
Definition in file ErrorHandlingSimulation.cpp.
| ErrorCode FunctionA | ( | int | test_case_num, |
| int | rank | ||
| ) |
Definition at line 93 of file ErrorHandlingSimulation.cpp.
References FunctionB(), MB_CHK_ERR, and MB_SUCCESS.
Referenced by main().
| ErrorCode FunctionB | ( | int | test_case_num, |
| int | rank | ||
| ) |
Definition at line 86 of file ErrorHandlingSimulation.cpp.
References FunctionC(), MB_CHK_ERR, and MB_SUCCESS.
Referenced by FunctionA().
| ErrorCode FunctionC | ( | int | test_case_num, |
| int | rank | ||
| ) |
Definition at line 49 of file ErrorHandlingSimulation.cpp.
References MB_INDEX_OUT_OF_RANGE, MB_NOT_IMPLEMENTED, MB_SET_ERR, MB_SET_GLB_ERR, MB_SUCCESS, and MB_TYPE_OUT_OF_RANGE.
Referenced by FunctionB().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 100 of file ErrorHandlingSimulation.cpp.
References FunctionA(), MB_CHK_ERR, moab::MBErrorHandler_Finalize(), and moab::MBErrorHandler_Init().