From 77417e2223db2f3872c495ca406ce79894cd3097 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 28 Jun 2025 04:37:24 -0400 Subject: [PATCH] use correct type --- src/EXTRA-FIX/fix_wall_flow.cpp | 2 +- src/fix_press_langevin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EXTRA-FIX/fix_wall_flow.cpp b/src/EXTRA-FIX/fix_wall_flow.cpp index 35997b5b63..7b2c19b95e 100644 --- a/src/EXTRA-FIX/fix_wall_flow.cpp +++ b/src/EXTRA-FIX/fix_wall_flow.cpp @@ -254,7 +254,7 @@ void FixWallFlow::generate_velocity(int atom_i) double delta = gamma * flowvel; const double edd = std::exp(-delta * delta) / MathConst::MY_PIS + delta * std::erf(delta); - const double probability_threshold = 0.5f * (1.f + delta / edd); + const double probability_threshold = 0.5 * (1.0 + delta / edd); double direction = 1.0; diff --git a/src/fix_press_langevin.cpp b/src/fix_press_langevin.cpp index 47a6d71f43..80edaeb1e8 100644 --- a/src/fix_press_langevin.cpp +++ b/src/fix_press_langevin.cpp @@ -241,7 +241,7 @@ FixPressLangevin::FixPressLangevin(LAMMPS *lmp, int narg, char **arg) : if (iarg + 4 > narg) utils::missing_cmd_args(FLERR, "fix press/langevin temp", error); t_start = utils::numeric(FLERR, arg[iarg + 1], false, lmp); t_stop = utils::numeric(FLERR, arg[iarg + 2], false, lmp); - seed = utils::numeric(FLERR, arg[iarg + 3], false, lmp); + seed = utils::inumeric(FLERR, arg[iarg + 3], false, lmp); if (seed <= 0) error->all(FLERR, "Fix press/langevin temp seed must be > 0"); iarg += 4; }