revert changes to force tolerance computations
This commit is contained in:
@ -251,16 +251,10 @@ int MinFire::iterate(int maxiter)
|
||||
// sync across replicas if running multi-replica minimization
|
||||
|
||||
if (update->ftol > 0.0) {
|
||||
if (normstyle == MAX) {
|
||||
fdotfloc = fnorm_max(); // max force norm
|
||||
MPI_Allreduce(&fdotfloc,&fdotf,1,MPI_DOUBLE,MPI_MAX,universe->uworld);
|
||||
} else if (normstyle == INF) {
|
||||
fdotfloc = fnorm_inf(); // inf force norm
|
||||
MPI_Allreduce(&fdotfloc,&fdotf,1,MPI_DOUBLE,MPI_MAX,universe->uworld);
|
||||
} else if (normstyle == TWO) {
|
||||
fdotf = fnorm_sqr(); // Euclidean force 2-norm
|
||||
MPI_Allreduce(&fdotfloc,&fdotf,1,MPI_DOUBLE,MPI_SUM,universe->uworld);
|
||||
} else error->all(FLERR,"Illegal min_modify command");
|
||||
if (normstyle == MAX) fdotf = fnorm_max(); // max force norm
|
||||
else if (normstyle == INF) fdotf = fnorm_inf(); // inf force norm
|
||||
else if (normstyle == TWO) fdotf = fnorm_sqr(); // Euclidean force 2-norm
|
||||
else error->all(FLERR,"Illegal min_modify command");
|
||||
if (update->multireplica == 0) {
|
||||
if (fdotf < update->ftol*update->ftol) return FTOL;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user