Skip to content
Snippets Groups Projects
Commit dea92fbf authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

print write dump systen init warning only on MPI rank 0

parent 6db3bd87
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "dump.h" #include "dump.h"
#include "dump_image.h" #include "dump_image.h"
#include "atom.h" #include "atom.h"
#include "comm.h"
#include "group.h" #include "group.h"
#include "input.h" #include "input.h"
#include "update.h" #include "update.h"
...@@ -76,7 +77,7 @@ void WriteDump::command(int narg, char **arg) ...@@ -76,7 +77,7 @@ void WriteDump::command(int narg, char **arg)
if (strcmp(arg[1],"cfg") == 0) if (strcmp(arg[1],"cfg") == 0)
((DumpCFG *) dump)->multifile_override = 1; ((DumpCFG *) dump)->multifile_override = 1;
if (update->first_update == 0) if ((update->first_update == 0) && (comm->me == 0))
error->warning(FLERR,"Calling write_dump before a full system init."); error->warning(FLERR,"Calling write_dump before a full system init.");
dump->init(); dump->init();
......
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