From fc1132b083072f0d9dd1b1383b46e66a813c6147 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 6 Feb 2024 19:37:15 -0500 Subject: [PATCH] fix bug that by chance has no unwanted side effects --- src/create_atoms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/create_atoms.cpp b/src/create_atoms.cpp index d3c3e200bc..85efac80e6 100644 --- a/src/create_atoms.cpp +++ b/src/create_atoms.cpp @@ -375,7 +375,7 @@ void CreateAtoms::command(int narg, char **arg) } else if (style == MESH) { // NOTE to Axel - here is the rescaling of both params if (mesh_style == BISECTION) { // by lattice spacings if units = lattice, similar to xone,overlap radthresh *= domain->lattice->xlattice; - } else if (mesh_style = QUASIRANDOM) { + } else if (mesh_style == QUASIRANDOM) { mesh_density /= (domain->lattice->xlattice * domain->lattice->xlattice); } }