| 9 | using namespace amrex; |
| 10 | |
| 11 | static |
| 12 | void |
| 13 | PrintUsage (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 | |
| 30 | int |
| 31 | main (int argc, |