Skip to content
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

Runtime error with nagfor #60

Closed
awvwgk opened this issue Mar 12, 2022 · 2 comments · Fixed by #40
Closed

Runtime error with nagfor #60

awvwgk opened this issue Mar 12, 2022 · 2 comments · Fixed by #40
Labels
compiler: nagfor Related to NAG's Fortran compiler

Comments

@awvwgk
Copy link
Member

awvwgk commented Mar 12, 2022

Testing with NAG's Fortran compiler yields runtime errors due to arithmetic exceptions

❯ nagfor
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7104
❯ fpm test --compiler nagfor test_lmder
...
Runtime Error: *** Arithmetic exception: Floating overflow - aborting
test/test_lmder.f90, line 904: Error occurred in TEST:SSQFCN
test/test_lmder.f90, line 118: Called by TEST:FCN
././src/minpack.f90, line 1737: Called by MINPACK_MODULE:LMDER
././src/minpack.f90, line 1921: Called by MINPACK_MODULE:LMDER1
test/test_lmder.f90, line 63: Called by TEST
 <ERROR> Execution failed for "test_lmder"
STOP 1
❯ fpm test --compiler nagfor test_lmdif
...
Runtime Error: *** Arithmetic exception: Floating overflow - aborting
test/test_lmdif.f90, line 370: Error occurred in SSQFCN
test/test_lmdif.f90, line 122: Called by FCN
././src/minpack.f90, line 2207: Called by MINPACK_MODULE:LMDIF
././src/minpack.f90, line 2383: Called by MINPACK_MODULE:LMDIF1
test/test_lmdif.f90, line 74: Called by TEST
 <ERROR> Execution failed for "test_lmdif"
STOP 1

@awvwgk awvwgk changed the title Runtime error with NAG compiler Runtime error with nagfor Mar 12, 2022
@awvwgk awvwgk added the compiler: nagfor Related to NAG's Fortran compiler label Mar 12, 2022
@jacobwilliams
Copy link
Member

jacobwilliams commented Mar 12, 2022

Note: I also see some these Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG warnings with gfortran on my Mac.

Need to investigate. Note: the original version of the code also had this. You can verify by running the scripts/validate.sh script in my test refactor branch. So it isn't something we caused in the refactoring.

@jacobwilliams
Copy link
Member

Can you try this with the latest commit from #40? (or wait until we merge to main).

@awvwgk awvwgk linked a pull request Mar 12, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler: nagfor Related to NAG's Fortran compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants