forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6175 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
9573dfcea0
commit
033b04a969
|
@ -219,12 +219,16 @@ void Thermo::init()
|
|||
}
|
||||
|
||||
// find current ptr for each Compute ID
|
||||
// cudable = 0 if any compute used by Thermo is non-CUDA
|
||||
|
||||
cudable = 1;
|
||||
|
||||
int icompute;
|
||||
for (i = 0; i < ncompute; i++) {
|
||||
icompute = modify->find_compute(id_compute[i]);
|
||||
if (icompute < 0) error->all("Could not find thermo compute ID");
|
||||
computes[i] = modify->compute[icompute];
|
||||
cudable = cudable && computes[i]->cudable;
|
||||
}
|
||||
|
||||
// find current ptr for each Fix ID
|
||||
|
|
|
@ -26,6 +26,7 @@ class Thermo : protected Pointers {
|
|||
char *style;
|
||||
int normflag; // 0 if do not normalize by atoms, 1 if normalize
|
||||
int modified; // 1 if thermo_modify has been used, else 0
|
||||
int cudable; // 1 if all computes used are cudable
|
||||
|
||||
Thermo(class LAMMPS *, int, char **);
|
||||
~Thermo();
|
||||
|
@ -73,6 +74,7 @@ class Thermo : protected Pointers {
|
|||
int *field2index; // which compute,fix,variable calcs this field
|
||||
int *argindex1; // indices into compute,fix scalar,vector
|
||||
int *argindex2;
|
||||
|
||||
// data for keyword-specific Compute objects
|
||||
// index = where they are in computes list
|
||||
// id = ID of Compute objects
|
||||
|
|
Loading…
Reference in New Issue