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

Function PrintUsage

Tools/Postprocessing/C_Src/WritePlotfileToASCII.cpp:11–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace amrex;
10
11static
12void
13PrintUsage (const char* progName)
14{
15 Print() << std::endl
16 << "This utility reads in a single-level plotfile, copies it to " << std::endl
17 << "a MultiFab with a single box, then writes out all the data in" << std::endl
18 << "'i j k comp <value>' format to the screen, for each component one by one." << std::endl
19 << "The optional flag [comp_in_line = 1] will plot data " << std::endl
20 << "with the format (i,j,k) followed by all components in a row. " << std::endl
21 << "The user can modify this cpp file to write out on certain components," << std::endl
22 << "coordinates, row/column formatting, etc." << std::endl << std::endl;
23
24 Print() << "Usage:" << '\n';
25 Print() << progName << " infile=inputFileName [comp_in_line = 1]" << '\n' << '\n';
26
27 exit(1);
28}
29
30int
31main (int argc,

Callers 1

mainFunction · 0.70

Calls 1

PrintClass · 0.85

Tested by

no test coverage detected