git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8016 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -14,6 +14,9 @@
|
||||
#include "stdlib.h"
|
||||
#include "integrate.h"
|
||||
#include "update.h"
|
||||
#include "force.h"
|
||||
#include "pair.h"
|
||||
#include "kspace.h"
|
||||
#include "modify.h"
|
||||
#include "compute.h"
|
||||
|
||||
@ -38,6 +41,18 @@ Integrate::~Integrate()
|
||||
delete [] vlist_atom;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void Integrate::init()
|
||||
{
|
||||
// allow pair and Kspace compute() to be turned off via modify flags
|
||||
|
||||
if (force->pair && force->pair->compute_flag) pair_compute_flag = 1;
|
||||
else pair_compute_flag = 0;
|
||||
if (force->kspace && force->kspace->compute_flag) kspace_compute_flag = 1;
|
||||
else kspace_compute_flag = 0;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
setup lists of computes for global and per-atom PE and pressure
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user