Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
datacoupler_test.cpp File Reference
#include "moab/Core.hpp"
#include "moab/CpuTimer.hpp"
#include "DataCoupler.hpp"
#include "ElemUtil.hpp"
#include "TestUtil.hpp"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cassert>
+ Include dependency graph for datacoupler_test.cpp:

Go to the source code of this file.

Macros

#define PRINT_LAST_ERROR
 

Functions

void print_usage (char **argv)
 
int main (int, char **argv)
 

Macro Definition Documentation

◆ PRINT_LAST_ERROR

#define PRINT_LAST_ERROR
Value:
if( MB_SUCCESS != result ) \
{ \
std::string tmp_str; \
std::cout << "Failure; message:" << std::endl; \
mbImpl->get_last_error( tmp_str ); \
std::cout << tmp_str << std::endl; \
MPI_Abort( MPI_COMM_WORLD, result ); \
return result; \
}

Definition at line 19 of file datacoupler_test.cpp.

Function Documentation

◆ main()

int main ( int  ,
char **  argv 
)

Definition at line 666 of file datacoupler_test.cpp.

667 {
668  print_usage( argv );
669  return 0;
670 }

References print_usage().

◆ print_usage()

void print_usage ( char **  argv)

Definition at line 31 of file datacoupler_test.cpp.

32 {
33  std::cerr << "Usage: ";
34  std::cerr << argv[0]
35  << " -meshes <source_mesh> <target_mesh> -itag <interp_tag> [-gnorm <gnorm_tag>] "
36  "[-ssnorm <ssnorm_tag> <ssnorm_selection>] [-ropts <roptions>] [-outfile "
37  "<out_file> [-wopts <woptions>]] [-dbgout [<dbg_file>]]"
38  << std::endl;
39  std::cerr << " -meshes" << std::endl;
40  std::cerr << " Read in mesh files <source_mesh> and <target_mesh>." << std::endl;
41  std::cerr << " -itag" << std::endl;
42  std::cerr << " Interpolate tag <interp_tag> from source mesh to target mesh." << std::endl;
43  std::cerr << " -gnorm" << std::endl;
44  std::cerr << " Normalize the value of tag <gnorm_tag> over then entire mesh and save to" << std::endl;
45  std::cerr << " tag \"<gnorm_tag>_normf\" on the mesh set. Do this for all meshes." << std::endl;
46  std::cerr << " -ssnorm" << std::endl;
47  std::cerr << " Normalize the value of tag <ssnorm_tag> over subsets of a mesh and save to" << std::endl;
48  std::cerr << " tag \"<ssnorm_tag>_normf\" on the Entity Set for each subset. Subsets "
49  "are selected"
50  << std::endl;
51  std::cerr << " using criteria in <ssnorm_selection>. Do this for all meshes." << std::endl;
52  std::cerr << " -ropts" << std::endl;
53  std::cerr << " Read in the mesh files using options in <roptions>." << std::endl;
54  std::cerr << " -outfile" << std::endl;
55  std::cerr << " Write out target mesh to <out_file>." << std::endl;
56  std::cerr << " -wopts" << std::endl;
57  std::cerr << " Write out mesh files using options in <woptions>." << std::endl;
58  std::cerr << " -dbgout" << std::endl;
59  std::cerr << " Write stdout and stderr streams to the file \'<dbg_file>.txt\'." << std::endl;
60  std::cerr << " -eps" << std::endl;
61  std::cerr << " epsilon" << std::endl;
62  std::cerr << " -meth <method> (0=CONSTANT, 1=LINEAR_FE, 2=QUADRATIC_FE, 3=SPECTRAL)" << std::endl;
63 }

Referenced by main().