git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12578 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -410,8 +410,7 @@ int DumpCustom::count()
|
||||
if (update->whichflag == 0) {
|
||||
for (i = 0; i < ncompute; i++)
|
||||
if (compute[i]->invoked_peratom != update->ntimestep)
|
||||
error->all(FLERR,"Compute used in write_dump between runs "
|
||||
"is not current");
|
||||
error->all(FLERR,"Compute used in dump between runs is not current");
|
||||
} else {
|
||||
for (i = 0; i < ncompute; i++) {
|
||||
if (!(compute[i]->invoked_flag & INVOKED_PERATOM)) {
|
||||
|
||||
@ -231,8 +231,16 @@ int DumpLocal::count()
|
||||
int i;
|
||||
|
||||
// invoke Computes for local quantities
|
||||
// only if within a run or minimize
|
||||
// else require that computes are current
|
||||
// this prevents a compute from being invoked by the WriteDump class
|
||||
|
||||
if (ncompute) {
|
||||
if (update->whichflag == 0) {
|
||||
for (i = 0; i < ncompute; i++)
|
||||
if (compute[i]->invoked_local != update->ntimestep)
|
||||
error->all(FLERR,"Compute used in dump between runs is not current");
|
||||
} else {
|
||||
for (i = 0; i < ncompute; i++) {
|
||||
if (!(compute[i]->invoked_flag & INVOKED_LOCAL)) {
|
||||
compute[i]->compute_local();
|
||||
@ -240,6 +248,7 @@ int DumpLocal::count()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// nmine = # of local values I contribute
|
||||
// must be consistent for all input fields
|
||||
|
||||
Reference in New Issue
Block a user