Merge branch 'develop' into replicate_periodic_box
This commit is contained in:
@ -28,8 +28,8 @@
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
#define LB_FACTOR 1.1
|
||||
#define EPSILON 1.0e-6
|
||||
static constexpr double LB_FACTOR = 1.1;
|
||||
static constexpr double EPSILON = 1.0e-6;
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
@ -57,7 +57,12 @@ void Replicate::command(int narg, char **arg)
|
||||
error->all(FLERR, "Illegal replication grid {}x{}x{}. All replications must be > 0",
|
||||
nx, ny, nz);
|
||||
|
||||
int nrep = nx*ny*nz;
|
||||
bigint nrepbig = (bigint) nx * ny * nz;
|
||||
if (nrepbig > MAXSMALLINT)
|
||||
error->all(FLERR, "Total # of replica is too large: {}x{}x{} = {}. "
|
||||
"Please use replicate multiple times", nx, ny, nz, nrepbig);
|
||||
|
||||
int nrep = (int) nrepbig;
|
||||
allnrep[0] = nx;
|
||||
allnrep[1] = ny;
|
||||
allnrep[2] = nz;
|
||||
|
||||
Reference in New Issue
Block a user