From 0b9fe1a70015622982f6c0d928ccdad4e8907c8a Mon Sep 17 00:00:00 2001 From: pscrozi Date: Wed, 18 Oct 2006 14:39:47 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@91 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/KSPACE/pair_lj_charmm_coul_long.cpp | 2 +- src/KSPACE/pair_lj_cut_coul_long.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KSPACE/pair_lj_charmm_coul_long.cpp b/src/KSPACE/pair_lj_charmm_coul_long.cpp index d9e8d1713d..3247e0fbb6 100644 --- a/src/KSPACE/pair_lj_charmm_coul_long.cpp +++ b/src/KSPACE/pair_lj_charmm_coul_long.cpp @@ -583,7 +583,7 @@ void PairLJCharmmCoulLong::compute_outer(int eflag, int vflag) if (factor_coul < 1.0) { table = ptable[itable] + fraction*dptable[itable]; prefactor = qtmp*q[j] * table; - phicoul -= (1.0-factor_coul)*prefactor; + forcecoul -= (1.0-factor_coul)*prefactor; } } } else forcecoul = 0.0; diff --git a/src/KSPACE/pair_lj_cut_coul_long.cpp b/src/KSPACE/pair_lj_cut_coul_long.cpp index 1b6a364976..d306df3a4d 100644 --- a/src/KSPACE/pair_lj_cut_coul_long.cpp +++ b/src/KSPACE/pair_lj_cut_coul_long.cpp @@ -550,7 +550,7 @@ void PairLJCutCoulLong::compute_outer(int eflag, int vflag) if (factor_coul < 1.0) { table = ptable[itable] + fraction*dptable[itable]; prefactor = qtmp*q[j] * table; - phicoul -= (1.0-factor_coul)*prefactor; + forcecoul -= (1.0-factor_coul)*prefactor; } } } else forcecoul = 0.0;