remove_if_exists(opt2fn("-be", nfile, fnm));
remove_if_exists(opt2fn("-bcpo", nfile, fnm));
remove_if_exists(opt2fn("-bg", nfile, fnm));
+ remove_if_exists(opt2fn("-bo", nfile, fnm));
+ remove_if_exists(opt2fn("-bx", nfile, fnm));
sfree(command);
sfree(msg );
t_filenm fnm[],
char *cmd_args_bench[], /* command line arguments for benchmark runs */
char *cmd_args_launch[], /* command line arguments for simulation run */
- char extra_args[]) /* Add this to the end of the command line */
+ char extra_args[], /* Add this to the end of the command line */
+ char *deffnm) /* Default file names, or NULL if not set */
{
int i;
char *opt;
add_to_string(cmd_args_bench, strbuf);
}
/* These switches take effect only at launch time */
+ if (deffnm)
+ {
+ sprintf(strbuf, "-deffnm %s ", deffnm);
+ add_to_string(cmd_args_launch, strbuf);
+ }
if (FALSE == bAppendFiles)
{
add_to_string(cmd_args_launch, "-noappend ");
char *ExtraArgs = NULL;
char **tpr_names = NULL;
const char *simulation_tpr = NULL;
+ char *deffnm = NULL;
int best_npme, best_tpr;
int sim_part = 1; /* For benchmarks with checkpoint files */
char bbuf[STRLEN];
"Append to previous output files when continuing from checkpoint instead of adding the simulation part number to all file names (for launch only)" },
{ "-cpnum", FALSE, etBOOL, {&bKeepAndNumCPT},
"Keep and number checkpoint files (launch only)" },
+ { "-deffnm", FALSE, etSTR, {&deffnm},
+ "Set the default filenames (launch only)" },
{ "-resethway", FALSE, etBOOL, {&bResetCountersHalfWay},
"HIDDENReset the cycle counters after half the number of steps or halfway [TT]-maxh[tt] (launch only)" }
};
cmd_np = bbuf;
create_command_line_snippets(bAppendFiles, bKeepAndNumCPT, bResetCountersHalfWay, presteps,
- NFILE, fnm, &cmd_args_bench, &cmd_args_launch, ExtraArgs);
+ NFILE, fnm, &cmd_args_bench, &cmd_args_launch, ExtraArgs, deffnm);
/* Prepare to use checkpoint file if requested */
sim_part = 1;