git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9457 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2013-02-12 23:13:35 +00:00
parent 9670e3d6eb
commit 97a23ad849
4 changed files with 9 additions and 2 deletions

View File

@ -56,7 +56,7 @@ ComputeTempEff::~ComputeTempEff()
/* ---------------------------------------------------------------------- */
void ComputeTempEff::init()
void ComputeTempEff::setup()
{
fix_dof = 0;
for (int i = 0; i < modify->nfix; i++)

View File

@ -28,7 +28,8 @@ class ComputeTempEff : public Compute {
public:
ComputeTempEff(class LAMMPS *, int, char **);
virtual ~ComputeTempEff();
void init();
void init() {}
void setup();
double compute_scalar();
void compute_vector();

View File

@ -77,7 +77,12 @@ void ComputeTempRegionEff::init()
iregion = domain->find_region(idregion);
if (iregion == -1)
error->all(FLERR,"Region ID for compute temp/region/eff does not exist");
}
/* ---------------------------------------------------------------------- */
void ComputeTempRegionEff::setup()
{
dof = 0.0;
}

View File

@ -29,6 +29,7 @@ class ComputeTempRegionEff : public Compute {
ComputeTempRegionEff(class LAMMPS *, int, char **);
virtual ~ComputeTempRegionEff();
void init();
void setup();
virtual double compute_scalar();
virtual void compute_vector();