Commit JT 092319
- modified norm input in min_modify - corrected doc/src/min_modify.txt - added expression of the norms - added a min max method in src/min.h
This commit is contained in:
@ -34,7 +34,7 @@ MinSD::MinSD(LAMMPS *lmp) : MinLineSearch(lmp) {}
|
||||
int MinSD::iterate(int maxiter)
|
||||
{
|
||||
int i,m,n,fail,ntimestep;
|
||||
double fdotf;
|
||||
double fdotf,fdotfloc;
|
||||
double *fatom,*hatom;
|
||||
|
||||
// initialize working vectors
|
||||
@ -77,8 +77,8 @@ int MinSD::iterate(int maxiter)
|
||||
|
||||
// force tolerance criterion
|
||||
|
||||
if (normstyle == 1) fdotf = fnorm_inf(); // max force norm
|
||||
else fdotf = fnorm_sqr(); // Euclidean force norm
|
||||
if (normstyle == MAX) fdotf = fnorm_max(); // max force norm
|
||||
else fdotf = fnorm_sqr(); // Euclidean force 2-norm
|
||||
if (fdotf < update->ftol*update->ftol) return FTOL;
|
||||
|
||||
// set new search direction h to f = -Grad(x)
|
||||
|
||||
Reference in New Issue
Block a user