MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / PrintUsage

Function PrintUsage

Tools/Plotfile/fcompare.cpp:18–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18void PrintUsage()
19{
20 amrex::Print()
21 << "\n"
22 << " Compare two plotfiles, zone by zone, to machine precision\n"
23 << " and report the maximum absolute and relative errors for each\n"
24 << " variable.\n"
25 << "\n"
26 << " usage:\n"
27 << " fcompare [-n|--norm num] [-d|--diffvar var] [-z|--zone_info var] [-a|--allow_diff_grids] [-l|--allow_diff_num_levels] [-r|rel_tol] [--abs_tol] [--abort_if_not_all_found] file1 file2\n"
28 << "\n"
29 << " optional arguments:\n"
30 << " -n|--norm num : what norm to use (default is 0 for inf norm)\n"
31 << " -d|--diffvar var : output a plotfile showing the differences for\n"
32 << " variable var\n"
33 << " -z|--zone_info var : output the information for a zone corresponding\n"
34 << " to the maximum error for the given variable\n"
35 << " -a|--allow_diff_grids : allow different BoxArrays covering the same domain\n"
36 << " -l|--allow_diff_num_levels : allow different number of levels (only the levels in common will be compared)\n"
37 << " -r|--rel_tol rtol : relative tolerance (default is 0)\n"
38 << " --abs_tol atol : absolute tolerance (default is 0)\n"
39 << " --abort_if_not_all_found : abort if not all variables are present in both files\n"
40 << '\n';
41}
42
43int main_main()
44{

Callers 2

main_mainFunction · 0.70
FinalizeMethod · 0.50

Calls 1

PrintClass · 0.85

Tested by

no test coverage detected