Unverified Commit 729cc81f authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make more use of utils::logmesg()

parent 74f50ed1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ void Balance::command(int narg, char **arg)
  if (domain->box_exist == 0)
    error->all(FLERR,"Balance command before simulation box is defined");

  if (me == 0 && screen) fprintf(screen,"Balancing ...\n");
  if (me == 0) utils::logmesg(lmp,"Balancing ...\n");

  // parse required arguments

+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ void ChangeBox::command(int narg, char **arg)
    error->all(FLERR,"Change_box command before simulation box is defined");
  if (narg < 2) error->all(FLERR,"Illegal change_box command");

  if (comm->me == 0 && screen) fprintf(screen,"Changing box ...\n");
  if (comm->me == 0) utils::logmesg(lmp,"Changing box ...\n");

  // group

+1 −2
Original line number Diff line number Diff line
@@ -282,8 +282,7 @@ void DeleteAtoms::delete_overlap(int narg, char **arg)
  int group1bit = group->bitmask[igroup1];
  int group2bit = group->bitmask[igroup2];

  if (comm->me == 0 && screen)
    fprintf(screen,"System init for delete_atoms ...\n");
  if (comm->me == 0) utils::logmesg(lmp,"System init for delete_atoms ...\n");

  // request a full neighbor list for use by this command

+2 −3
Original line number Diff line number Diff line
@@ -51,11 +51,10 @@ void DeleteBonds::command(int narg, char **arg)
  // init entire system since comm->borders is done
  // comm::init needs neighbor::init needs pair::init needs kspace::init, etc

  if (comm->me == 0 && screen)
    fprintf(screen,"System init for delete_bonds ...\n");
  if (comm->me == 0) utils::logmesg(lmp,"System init for delete_bonds ...\n");
  lmp->init();

  if (comm->me == 0 && screen) fprintf(screen,"Deleting bonds ...\n");
  if (comm->me == 0) utils::logmesg(lmp,"Deleting bonds ...\n");

  // identify group

+2 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
#include "math_extra.h"
#include "memory.h"
#include "error.h"
#include "utils.h"
#include "fmt/format.h"

using namespace LAMMPS_NS;
@@ -68,7 +69,7 @@ void DisplaceAtoms::command(int narg, char **arg)
    error->all(FLERR,"Cannot displace_atoms after "
               "reading restart file with per-atom info");

  if (comm->me == 0 && screen) fprintf(screen,"Displacing atoms ...\n");
  if (comm->me == 0) utils::logmesg(lmp,"Displacing atoms ...\n");

  // group and style

Loading