From ac658a17fc612c73267e9678139c4daf84d982d7 Mon Sep 17 00:00:00 2001 From: ckadding <cody.addington@gmail.com> Date: Tue, 2 Oct 2018 10:34:08 -0400 Subject: [PATCH] Update compute_pressure_cylinder.cpp --- src/USER-MISC/compute_pressure_cylinder.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/USER-MISC/compute_pressure_cylinder.cpp b/src/USER-MISC/compute_pressure_cylinder.cpp index cb8f841ac3..cbef2941a8 100644 --- a/src/USER-MISC/compute_pressure_cylinder.cpp +++ b/src/USER-MISC/compute_pressure_cylinder.cpp @@ -40,9 +40,7 @@ static const char cite_compute_pressure_cylinder[] = " volume = 149,\n" " pages = {084109}\n" "}\n\n"; - -if (lmp->citeme) lmp->citeme->add(cite_compute_pressure_cylinder); - + /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Calculate the configurational components of the pressure tensor in cylindrical geometry, according to the formulation of Addington et al. (2018) @@ -55,6 +53,7 @@ ComputePressureCyl::ComputePressureCyl(LAMMPS *lmp, int narg, char **arg) : ephi_y(NULL), Pr_temp(NULL), Pr_all(NULL), Pz_temp(NULL), Pz_all(NULL), Pphi_temp(NULL), Pphi_all(NULL), PrAinv(NULL) PzAinv(NULL), binz(NULL) { + if (lmp->citeme) lmp->citeme->add(cite_compute_pressure_cylinder); if (narg != 7) error->all(FLERR,"Illegal compute pressure/cylinder command"); zlo=force->numeric(FLERR,arg[3]); -- GitLab