You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 compgreps 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"
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
Fig 2 - cmplr.env with UFS flags
Fig 3 - matrix12.out
Fig 4 - scrip_errormod.f90
Additional context
N/A.
The text was updated successfully, but these errors were encountered:
Describe the bug
When compiling using UFS debug flags (without
-init=snan,arrays
), the build will fail due tocomp
erroneously detecting an error in the filescrip_errormod.err
. This is due to a remark generated in the file which also contains the file namescrip_errormod.f90
. Whencomp
grep
s 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:
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"
ww3_ufs1.1
regtest in debug mode -- where the compiler string in therun_test
call isintel_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 filescrip_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
Fig 2 -
cmplr.env
with UFS flagsFig 3 -
matrix12.out
Fig 4 -
scrip_errormod.f90
Additional context
The text was updated successfully, but these errors were encountered: