Unverified Commit 92f194ac authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make sure output buffer is initialized

parent f344629a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -272,6 +272,7 @@ void WriteRestart::write(std::string file)

  double *buf;
  memory->create(buf,max_size,"write_restart:buf");
  memset(buf,0,max_size*sizeof(buf));

  // all procs write file layout info which may include per-proc sizes