Address bug in multifile restart writing with step number included

This commit is contained in:
Axel Kohlmeyer
2018-02-01 14:25:55 +01:00
parent 5e9d257ec2
commit 3bc1c6b59e

View File

@ -95,6 +95,7 @@ void WriteRestart::command(int narg, char **arg)
if ((ptr = strchr(arg[0],'*'))) {
*ptr = '\0';
sprintf(file,"%s" BIGINT_FORMAT "%s",arg[0],update->ntimestep,ptr+1);
*ptr = '*'; // must restore arg[0] so it can be correctly parsed below
} else strcpy(file,arg[0]);
// check for multiproc output and an MPI-IO filename