diff --git a/src/Action_GIST.cpp b/src/Action_GIST.cpp index 196e8574f2..c928fa26e3 100644 --- a/src/Action_GIST.cpp +++ b/src/Action_GIST.cpp @@ -3,6 +3,7 @@ #include "Action_GIST.h" #include "CpptrajStdio.h" #include "Constants.h" +#include "DataSet_MatrixFlt.h" #include "DataSet_GridFlt.h" #include "DataSet_GridDbl.h" #include "ProgressBar.h" @@ -663,7 +664,7 @@ void Action_GIST::NonbondEnergy(Frame const& frameIn, Topology const& topIn) // Action_GIST::Order() void Action_GIST::Order(Frame const& frameIn) { // Loop over all solvent molecules that are on the grid - for (unsigned int gidx = 0; gidx < N_ON_GRID_; gidx += 3) + for (unsigned int gidx = 0; gidx < N_ON_GRID_; gidx += nMolAtoms_) { int oidx1 = OnGrid_idxs_[gidx]; int voxel1 = atom_voxel_[oidx1]; diff --git a/src/Action_GIST.h b/src/Action_GIST.h index c6d0b0f217..575850dc59 100644 --- a/src/Action_GIST.h +++ b/src/Action_GIST.h @@ -2,9 +2,9 @@ #define INC_ACTION_GIST_H #include "Action.h" #include "ImagedAction.h" -#include "DataSet_3D.h" -#include "DataSet_MatrixFlt.h" #include "Timer.h" +class DataSet_3D; +class DataSet_MatrixFlt; /// Class for applying Grid Inhomogenous Solvation Theory /** \author Daniel R. Roe */ diff --git a/test/Test_GIST_Order/RunTest.sh b/test/Test_GIST_Order/RunTest.sh index 58a7341acd..6cfe0ab4b9 100755 --- a/test/Test_GIST_Order/RunTest.sh +++ b/test/Test_GIST_Order/RunTest.sh @@ -2,22 +2,43 @@ . ../MasterTest.sh -CleanFiles gist.in gist-*.dx gistout.dat +CleanFiles gist.in gist-*.dx gistout.dat tip4p.dat tip5p.dat -TESTNAME='GIST tetrahedral water cluster test' +TESTNAME='GIST tetrahedral water cluster tests' Requires notparallel INPUT="-i gist.in" +UNITNAME='TIP3P water cluster test' cat > gist.in < gist.in < gist.in <