Skip to content

Commit 77faf41

Browse files
fixed argument mismatch in OGPWRI subroutines
1 parent ab1c221 commit 77faf41

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

pyoptgra/core/ogeval.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ SUBROUTINE OGEVAL (VALVAR, VALCON, DERVAR, DERCON, CALVAL, CALDER)
215215
C write pygmo-style log output
216216
OBJVAL = -VALCON(NUMCON+1)
217217
CONVIO = DSQRT(CONVIO)
218-
CALL OGPWRI(OBJVAL, NUMVIO, CONVIO, DERVAR)
218+
CALL OGPWRI(OBJVAL, NUMVIO, CONVIO)
219219
C ======================================================================
220220
C NO DERIVATIVES
221221
C ----------------------------------------------------------------------

pyoptgra/core/ogexec.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ SUBROUTINE OGEXEC (VALVAR, VALCON, FINOPT, FINITE, CALVAL, CALDER)
143143
WRITE(STR,'("OPTGRA: Converged: mat ITERAT=",2I4,2D11.3)')
144144
& NUMITE,MAXITE,CONERR,DESNOR
145145
CALL OGWRIT (1,STR)
146-
CALL OGPWRI_END(NUMITE, -VALCON(NUMCON+1), NUMVIO, CONVIO, 1)
146+
CALL OGPWRI_END(-VALCON(NUMCON+1), NUMVIO, CONVIO)
147147

148148
C Final Pygmo output
149149
C TODO: can this final fitness call be avoided (just for output)?

tests/python/test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ def khan_function_test(self):
774774
lambda _lb, _ub, _ug: pyoptgra.khan_function_triangle(_lb, _ub, 4, _ug),
775775
]:
776776
for unity_gradient in [True, False]: # test both variants
777-
print("Testinf Khan function ", fun)
778777
lb = [-10, 0, -np.inf, -np.inf, -20]
779778
ub = [10, 30, np.inf, -np.inf, -10]
780779

0 commit comments

Comments
 (0)