Updated fix rigid/nh for the (g_f == 0) case

This commit is contained in:
Trung Nguyen
2021-04-06 00:19:20 -05:00
parent 2fc9734fab
commit 8e28252ac9
2 changed files with 4 additions and 4 deletions

View File

@ -234,8 +234,6 @@ void FixRigidNH::init()
}
g_f = nf_t + nf_r;
onednft = 1.0 + (double)(dimension) / (double)g_f;
onednfr = (double) (dimension) / (double)g_f;
// see Table 1 in Kamberaj et al
@ -719,6 +717,8 @@ void FixRigidNH::final_integrate()
void FixRigidNH::nhc_temp_integrate()
{
if (g_f == 0) return;
int i,j,k;
double kt,gfkt_t,gfkt_r,tmp,ms,s,s2;
@ -1063,6 +1063,8 @@ void FixRigidNH::compute_press_target()
void FixRigidNH::nh_epsilon_dot()
{
if (g_f == 0) return;
int i;
double volume,scale,f_epsilon;

View File

@ -38,8 +38,6 @@ class FixRigidNH : public FixRigid {
double boltz,nktv2p,mvv2e; // boltzman constant, conversion factors
int nf_t,nf_r; // trans/rot degrees of freedom
double onednft,onednfr; // factors 1 + dimension/trans(rot)
// degrees of freedom
double *w,*wdti1,*wdti2,*wdti4; // Yoshida-Suzuki coefficients
double *q_t,*q_r; // trans/rot thermostat masses
double *eta_t,*eta_r; // trans/rot thermostat positions