Skip to content
Snippets Groups Projects
Unverified Commit 984fda5e authored by Steve Plimpton's avatar Steve Plimpton Committed by GitHub
Browse files

Merge pull request #797 from akohlmey/multifile-restart-bugfix

Address bug in multifile restart writing with step number included
parents 196b3c81 3bc1c6b5
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ void WriteRestart::command(int narg, char **arg) ...@@ -95,6 +95,7 @@ void WriteRestart::command(int narg, char **arg)
if ((ptr = strchr(arg[0],'*'))) { if ((ptr = strchr(arg[0],'*'))) {
*ptr = '\0'; *ptr = '\0';
sprintf(file,"%s" BIGINT_FORMAT "%s",arg[0],update->ntimestep,ptr+1); 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]); } else strcpy(file,arg[0]);
// check for multiproc output and an MPI-IO filename // check for multiproc output and an MPI-IO filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment