-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in SPEC (for Lfindzero=1) #37
Comments
@jloizu Could you give / point out a test case? I will check this. |
Here is an input file that does not work (Lfindzero=1) but does work if you set Lfindzero=2. (you have to remove the txt extension) |
In minpack subroutine "hybrd", the function-to-optimize, "fcn1", is called with value irevcm=2. The logic of "fcn1" is that if irevcm=0 or 1, it works normally, otherwise returns an error. |
Sorry, I was distracted by other things. zhisong's fix should work, but I cannot test it in a quick time. I don't have a valid environmental file on PPPL cluster to compile & run SPEC (the current one I have somehow doesn't work). |
Yes Zhisong's fix seems to solve the problem! I tested the branch and everything looks good. I am now merging it into master. |
The option Lfindzero=1 (instead of the common Lfindzero=2) does not seem to work (not even in fixed-boundary). The error is
and is displayed while executing the fcn1 subroutine defined in newton.h. Somehow irevcm (which should be 0 or 1 according to fcn1) takes an illegal value and execution is aborted.
The subroutine fcn1 is used when calling hybrd, which is the replacement to NAG introduced by Caoxiang on Jul20,
The text was updated successfully, but these errors were encountered: