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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#include "dump.h"
#include "dump_image.h"
#include "atom.h"
#include "comm.h"
#include "group.h"
#include "input.h"
#include "update.h"
@@ -76,7 +77,7 @@ void WriteDump::command(int narg, char **arg)
  if (strcmp(arg[1],"cfg") == 0)
    ((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.");

  dump->init();