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

scrip_errormod.f90: build grep error #554

Closed
MatthewMasarik-NOAA opened this issue Dec 6, 2021 · 0 comments
Closed

scrip_errormod.f90: build grep error #554

MatthewMasarik-NOAA opened this issue Dec 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@MatthewMasarik-NOAA
Copy link
Collaborator

Describe the bug
When compiling using UFS debug flags (without -init=snan,arrays), the build will fail due to comp erroneously detecting an error in the file scrip_errormod.err. This is due to a remark generated in the file which also contains the file name scrip_errormod.f90. When comp greps for the word 'error', it will find a match in the substring of the name. As noted this bug was detected using debug flags which are not part of WW3, however it is not restricted to that.

To Reproduce
Steps to reproduce with the Intel:

  • In model/bin/cmplr.env, the assignment string (see Fig 1 below):
    optc="$optc -O0 -debug all -warn all -check all -check noarg_temp_created -fp-stack-check -heap-arrays -traceback -fpe0"

should be replaced with (Fig 2):

    optc="$optc -O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv"
  • Then run the ww3_ufs1.1 regtest in debug mode -- where the compiler string in the run_test call is intel_debug.

Expected behavior
The build will fail while compiling ww3_grid, and the message will point to a missing file, scrip_errormod.o (Fig 3). Inspecting the file scrip_errormod.err, there are two remarks (which are not fatal), and one contains the file name `scrip_errormod.f90' (Fig 4).

Screenshots
Fig 1 - original cmplr.env
image

Fig 2 - cmplr.env with UFS flags
image

Fig 3 - matrix12.out
image

Fig 4 - scrip_errormod.f90
image

Additional context

  • N/A.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant