MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "moab/ParallelComm.hpp"
#include "MBParallelConventions.h"
#include "ReadParallel.hpp"
#include "moab/FileOptions.hpp"
#include "MBTagConventions.hpp"
#include "moab/Core.hpp"
#include "moab_mpi.h"
#include "TestUtil.hpp"
#include <iostream>
#include <algorithm>
#include <sstream>
#include <cassert>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | CHKERR(a) |
#define | PCHECK(A) if( is_any_proc_error( !( A ) ) ) return report_error( __FILE__, __LINE__ ) |
#define | RUN_TEST_ARG3(A, B, C) run_test( &( A ), #A, B, C ) |
Functions | |
ErrorCode | report_error (const char *file, int line) |
ErrorCode | test_read (const char *filename, const char *option) |
int | is_any_proc_error (int is_my_error) |
int | run_test (ErrorCode(*func)(const char *, const char *), const char *func_name, const std::string &file_name, const char *option) |
int | main (int argc, char *argv[]) |
#define CHKERR | ( | a | ) |
Definition at line 20 of file uber_parallel_test.cpp.
#define PCHECK | ( | A | ) | if( is_any_proc_error( !( A ) ) ) return report_error( __FILE__, __LINE__ ) |
Definition at line 31 of file uber_parallel_test.cpp.
#define RUN_TEST_ARG3 | ( | A, | |
B, | |||
C | |||
) | run_test( &( A ), #A, B, C ) |
Definition at line 42 of file uber_parallel_test.cpp.
int is_any_proc_error | ( | int | is_my_error | ) |
Definition at line 44 of file uber_parallel_test.cpp.
References MPI_COMM_WORLD.
Referenced by run_test().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 71 of file uber_parallel_test.cpp.
References filename, MPI_COMM_WORLD, rank, RUN_TEST_ARG3, size, and test_read().
ErrorCode report_error | ( | const char * | file, |
int | line | ||
) |
Definition at line 34 of file uber_parallel_test.cpp.
int run_test | ( | ErrorCode(*)(const char *, const char *) | func, |
const char * | func_name, | ||
const std::string & | file_name, | ||
const char * | option | ||
) |
Definition at line 51 of file uber_parallel_test.cpp.
References ErrorCode, is_any_proc_error(), MB_SUCCESS, MPI_COMM_WORLD, and rank.
ErrorCode test_read | ( | const char * | filename, |
const char * | option | ||
) |
Definition at line 145 of file uber_parallel_test.cpp.
References moab::ParallelComm::check_all_shared_handles(), CHKERR, ErrorCode, filename, moab::ParallelComm::get_pcomm(), mb_instance(), and MB_SUCCESS.
Referenced by main().