Commit 91f97fa7 authored by Yaser Afshar's avatar Yaser Afshar
Browse files

Remove the previously created KIM log file.

parent 88221061
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -111,6 +111,11 @@ void KimInit::command(int narg, char **arg)
  char *model_units;
  KIM_Model *pkim = NULL;

  if (universe->me == 0)
    std::remove("kim.log");
  if (universe->nprocs > 1)
    MPI_Barrier(universe->uworld);

  determine_model_type_and_units(model_name, user_units, &model_units, pkim);

  write_log_cite(model_name);