455 logger(
INFO,
"no arguments given, so a test file is converted; to convert your own p4 files, use:\n"
456 "convertP4Files.cpp name xmin xmax ymin ymax zmin zmax [timeMin [timeMax [periodic]]]");
459 "TIMESTEP PARTICLES\n"
461 "ID GROUP VOLUME MASS PX PY PZ VX VY VZ Angular_Velocity_X Angular_Velocity_Y Angular_Velocity_Z\n"
462 "1 1 0.52359877559 1 0.5 0.5 0.5 1 0 0 0 0 1\n"
463 "3 1 0.52359877559 1 3.5 0.5 0.5 0 0 0 0 0 0\n"
464 "TIMESTEP PARTICLES\n"
466 "ID GROUP VOLUME MASS PX PY PZ VX VY VZ Angular_Velocity_X Angular_Velocity_Y Angular_Velocity_Z\n"
467 "1 1 0.52359877559 1 0.5 0.5 0.5 1 0 0 0 0 1\n"
468 "3 1 0.52359877559 1 3.5 0.5 0.5 0 0 0 0 0 0\n"
472 "TIMESTEP CONTACTS\n"
474 "P1 P2 CX CY CZ FX FY FZ\n"
475 "1 3 0 0.5 0.5 1 1 0\n"
476 "TIMESTEP CONTACTS\n"
478 "P1 P2 CX CY CZ FX FY FZ\n"
479 "1 3 4 0.5 0.5 1 1 0\n"
483 "TIMESTEP CONTACTS\n"
485 "P1 CX CY CZ FX FY FZ\n"
486 "1 0.5 0.5 0 0 0 1\n"
487 "3 3.5 0.5 0 0 0 1\n"
488 "TIMESTEP CONTACTS\n"
490 "P1 CX CY CZ FX FY FZ\n"
491 "1 0.5 0.5 0 0 0 1\n"
492 "3 3.5 0.5 0 0 0 1\n"
496 files.copy(0,4,0,1,0,1,-1,1e20,1);
500 logger(
ERROR,
"convertP4Files.cpp problem_name xmin xmax ymin ymax zmin zmax [timeMin [timeMax "
506 std::string
name(argv[1]);
511 timeMin = atof(argv[8]);
515 double timeMax = 1e20;
517 timeMax = atof(argv[9]);
521 unsigned int periodic = 0;
524 periodic =
static_cast<unsigned int>(atoi(argv[10]));
529 files.copy(atof(argv[2]), atof(argv[3]), atof(argv[4]), atof(argv[5]), atof(argv[6]), atof(argv[7]), timeMin,
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:53
takes data and fstat files and splits them into *.data.???? and *.fstat.???? files
Definition: centerofmass.cpp:40
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58
std::string name
Definition: MercuryProb.h:48