TCLAP::CmdLinecmd("Adds a scalar array time series from a csv-file to an existing mesh or a time series of meshes.",' ',"0.1");
TCLAP::CmdLinecmd("Adds a scalar array time series from a csv-file to an existing mesh or a time series of meshes.",' ',"0.1");
// I/O params
// I/O params
TCLAP::ValueArg<std::string>mesh_new("b","base",
TCLAP::ValueArg<std::string>mesh_new("b","base",
"Use this if a time series of vtu-files should be created based on a single vtu-file. If a time series *is* already existing, this parameter need not be set.",
"Use this if a time series of vtu-files should be created based on a single vtu-file. If a time series *is* already existing, this parameter need not be set.",
"This is the base name of the output files, e.g. \'output\' will result in files called \'output0.vtu\', \'output1.vtu\', etc. If a time series is already existing, a new array will simply be added to each time step.",
"This is the base name of the output files, e.g. \'output\' will result in files called \'output0.vtu\', \'output1.vtu\', etc. If a time series is already existing, a new array will simply be added to each time step.",
true,"","name of mesh output");
true,"","name of mesh output");
cmd.add(mesh_add);
cmd.add(mesh_add);
TCLAP::ValueArg<std::string>csv_in("i","csv",
TCLAP::ValueArg<std::string>csv_in("i","csv",
"CSV-file containing the input information for the scalar arrays. It is assumed that all timesteps are in one file with an empty line between timesteps and with one value per grid cell per time step.",
"CSV-file containing the input information for the scalar arrays. It is assumed that all timesteps are in one file with an empty line between timesteps and with one value per grid cell per time step.",
true,"","csv input file");
true,"","csv input file");
cmd.add(csv_in);
cmd.add(csv_in);
cmd.parse(argc,argv);
cmd.parse(argc,argv);
...
@@ -152,7 +149,7 @@ int main(int argc, char *argv[])
...
@@ -152,7 +149,7 @@ int main(int argc, char *argv[])