git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14220 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -15,9 +15,9 @@
|
||||
Contributing authors: Mark Stevens (SNL), Aidan Thompson (SNL)
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#include "string.h"
|
||||
#include "stdlib.h"
|
||||
#include "math.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include "fix_nh.h"
|
||||
#include "math_extra.h"
|
||||
#include "atom.h"
|
||||
@ -131,7 +131,7 @@ FixNH::FixNH(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg)
|
||||
pcouple = XYZ;
|
||||
p_start[0] = p_start[1] = p_start[2] = force->numeric(FLERR,arg[iarg+1]);
|
||||
p_stop[0] = p_stop[1] = p_stop[2] = force->numeric(FLERR,arg[iarg+2]);
|
||||
p_period[0] = p_period[1] = p_period[2] =
|
||||
p_period[0] = p_period[1] = p_period[2] =
|
||||
force->numeric(FLERR,arg[iarg+3]);
|
||||
p_flag[0] = p_flag[1] = p_flag[2] = 1;
|
||||
if (dimension == 2) {
|
||||
@ -144,7 +144,7 @@ FixNH::FixNH(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg)
|
||||
pcouple = NONE;
|
||||
p_start[0] = p_start[1] = p_start[2] = force->numeric(FLERR,arg[iarg+1]);
|
||||
p_stop[0] = p_stop[1] = p_stop[2] = force->numeric(FLERR,arg[iarg+2]);
|
||||
p_period[0] = p_period[1] = p_period[2] =
|
||||
p_period[0] = p_period[1] = p_period[2] =
|
||||
force->numeric(FLERR,arg[iarg+3]);
|
||||
p_flag[0] = p_flag[1] = p_flag[2] = 1;
|
||||
if (dimension == 2) {
|
||||
@ -158,12 +158,12 @@ FixNH::FixNH(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg)
|
||||
scalexy = scalexz = scaleyz = 0;
|
||||
p_start[0] = p_start[1] = p_start[2] = force->numeric(FLERR,arg[iarg+1]);
|
||||
p_stop[0] = p_stop[1] = p_stop[2] = force->numeric(FLERR,arg[iarg+2]);
|
||||
p_period[0] = p_period[1] = p_period[2] =
|
||||
p_period[0] = p_period[1] = p_period[2] =
|
||||
force->numeric(FLERR,arg[iarg+3]);
|
||||
p_flag[0] = p_flag[1] = p_flag[2] = 1;
|
||||
p_start[3] = p_start[4] = p_start[5] = 0.0;
|
||||
p_stop[3] = p_stop[4] = p_stop[5] = 0.0;
|
||||
p_period[3] = p_period[4] = p_period[5] =
|
||||
p_period[3] = p_period[4] = p_period[5] =
|
||||
force->numeric(FLERR,arg[iarg+3]);
|
||||
p_flag[3] = p_flag[4] = p_flag[5] = 1;
|
||||
if (dimension == 2) {
|
||||
@ -844,11 +844,11 @@ void FixNH::final_integrate()
|
||||
|
||||
// re-compute temp before nh_v_press()
|
||||
// only needed for temperature computes with BIAS on reneighboring steps:
|
||||
// b/c some biases store per-atom values (e.g. temp/profile)
|
||||
// b/c some biases store per-atom values (e.g. temp/profile)
|
||||
// per-atom values are invalid if reneigh/comm occurred
|
||||
// since temp->compute() in initial_integrate()
|
||||
|
||||
if (which == BIAS && neighbor->ago == 0)
|
||||
if (which == BIAS && neighbor->ago == 0)
|
||||
t_current = temperature->compute_scalar();
|
||||
|
||||
if (pstat_flag) nh_v_press();
|
||||
|
||||
Reference in New Issue
Block a user