4 main(
int argc,
char *argv[])
6 double errorTolerance = 1e-15;
8 std::cout <<
"This utility compares the state data in two specified" << std::endl
9 <<
"PlasCom2 or PlasComCM HDF5 files. Cross-comparisons between" << std::endl
10 <<
"PlasCom2 and PlasComCM are supported. A plottable summary" << std::endl
11 <<
"of the comparison is generated on stdout. Return values are:" << std::endl
12 <<
" 0 : All tests passed." << std::endl
13 <<
" 1 : One or more tests failed." << std::endl
14 <<
" -1 : Tests not run due to some error or incompatibility." << std::endl
15 << std::endl <<
"Some limitations:" << std::endl
16 <<
"* Currently, only rho, rhoV, and rhoE fields are compared." << std::endl
17 <<
"* Comparisons on subsets of domains are not yet supported." << std::endl
18 <<
"* Only single grid datasets are supported (default to 1st grid)." << std::endl
20 <<
" Usage: " << std::endl
21 << argv[0] <<
" <red file> <blue file> [tolerance]" << std::endl
23 <<
"<red/blue file> := Required PlasCom2 or PlasComCM HDF5 files." << std::endl
24 <<
"tolerance := Optional error tolerance defaults to 1e-15." << std::endl;
30 <<
":Error: Missing some required arguments. Invoke without arguments for usage summary." 36 std::istringstream Istr(argv[3]);
37 Istr >> errorTolerance;
int PC2Compare(const std::string &redFileName, const std::string &blueFileName, double errTolerance, std::ostream &outStream)
Read two HDF5 files and compare the state data therein.
int main(int argc, char *argv[])