Skip to content

Commit

Permalink
240227.193840.HKT fortran/classical/bobyqa/rescue: change IABS to `…
Browse files Browse the repository at this point in the history
…ABS`
  • Loading branch information
zaikunzhang committed Feb 27, 2024
1 parent e6e6d89 commit 713e244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ HYDCAR
HYPOT
Hennart
Himmelblau
IABS
IBDSAV
IBRNCH
ICONT
Expand Down
4 changes: 2 additions & 2 deletions fortran/classical/bobyqa/rescue.f
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ subroutine rescue(calfun, n, npt, xl, xu, iprint,maxfun,xbase,xpt,
IHQ=(IQ+IQ*IQ)/2
VQUAD=VQUAD+XQ*(GOPT(IQ)+HALF*XQ*HQ(IHQ))
IF (IP > 0) THEN
IW=MAX0(IHP,IHQ)-IABS(IP-IQ)
IW=MAX0(IHP,IHQ)-ABS(IP-IQ)
VQUAD=VQUAD+XP*XQ*HQ(IW)
END IF
END IF
Expand Down Expand Up @@ -463,7 +463,7 @@ subroutine rescue(calfun, n, npt, xl, xu, iprint,maxfun,xbase,xpt,
HQ(IHP)=HQ(IHP)+TEMP*PTSAUX(1,IP)**2
IF (IQ > 0) THEN
HQ(IHQ)=HQ(IHQ)+TEMP*PTSAUX(1,IQ)**2
IW=MAX0(IHP,IHQ)-IABS(IQ-IP)
IW=MAX0(IHP,IHQ)-ABS(IQ-IP)
HQ(IW)=HQ(IW)+TEMP*PTSAUX(1,IP)*PTSAUX(1,IQ)
END IF
END IF
Expand Down

0 comments on commit 713e244

Please sign in to comment.