debug fix_modify press for press/berendsen

This commit is contained in:
Shern Tee
2023-06-18 17:51:15 +10:00
committed by GitHub
parent 9673c22cc7
commit 5196e4422b

View File

@ -491,7 +491,7 @@ int FixPressBerendsen::modify_param(int narg, char **arg)
id_press = utils::strdup(arg[1]);
pressure = modify->get_compute_by_id(arg[1]);
if (pressure) error->all(FLERR,"Could not find fix_modify pressure compute ID: {}", arg[1]);
if (!pressure) error->all(FLERR,"Could not find fix_modify pressure compute ID: {}", arg[1]);
if (pressure->pressflag == 0)
error->all(FLERR,"Fix_modify pressure compute {} does not compute pressure", arg[1]);
return 2;