more detailed log message with replicate

This commit is contained in:
Axel Kohlmeyer
2022-10-19 02:44:41 -04:00
parent f867adc541
commit cbec6cdc6c

View File

@ -47,8 +47,6 @@ void Replicate::command(int narg, char **arg)
int me = comm->me;
int nprocs = comm->nprocs;
if (me == 0) utils::logmesg(lmp,"Replicating atoms ...\n");
// nrep = total # of replications
int nx = utils::inumeric(FLERR,arg[0],false,lmp);
@ -56,6 +54,9 @@ void Replicate::command(int narg, char **arg)
int nz = utils::inumeric(FLERR,arg[2],false,lmp);
int nrep = nx*ny*nz;
if (me == 0)
utils::logmesg(lmp,"Replicating atoms for a {}x{}x{} = {} times size system...\n", nx, ny, nz, nrep);
int bbox_flag = 0;
if (narg == 4)
if (strcmp(arg[3],"bbox") == 0) bbox_flag = 1;