Added check to prevent uphill moves in quadratic model, tweaked
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2692 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -825,7 +825,7 @@ int MinCG::linemin_quadratic(int n, double *x, double *dir,
|
||||
|
||||
de_ideal = -BACKTRACK_SLOPE*alpha0*fdotdirall;
|
||||
de = eng - eoriginal;
|
||||
if (de <= de_ideal) {
|
||||
if (de <= de_ideal || de_ideal >= -IDEAL_TOL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user