-
Notifications
You must be signed in to change notification settings - Fork 568
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
ESMF cap error with UFS debug options -init=snan,arrays #552
Comments
Update: The false positive error mentioned above no longer occurs. The fix (PR#555) shown in Fig 2. above was merged into develop. |
@MatthewMasarik-NOAA I wonder if you've tried to compile in debug mode after the cmake build was added to WW3. What I found is that the
shows the following replacement
This pre-preprocessed code then fails at compile time. Note what I actually found in the compile log is that the instances of DEBUG were replaced by "1". You can see a temporary fix which allowed me to compile using |
Hi @DeniseWorthen , I haven't compiled in debug since CMAKE was added. I will look into it and reply back. |
I've created a UFS issue (ufs-community/ufs-weather-model#1133) since I'm unsure of where the fix will need to be made (UWM or WW3). |
@MatthewMasarik-NOAA I believe this issue can be closed. It looks like the fix was committed in ufs-community/ufs-weather-model#1130 |
Hi @DeniseWorthen, I'm working to verify this. Stayed tuned. |
This issue can be closed as it has been resolved for S2SWA. Thank you @DeniseWorthen. |
Describe the bug
When running UFS in debug mode coupled to WW3, if the WW3 compile uses the UFS flags (+ "
-init=snan,arrays
"), then the run will crash during initialization due to a 'floating invalid
' error in the ESMF cap.To Reproduce
ufs-weather-model
select a run withS2SW
compile andDDEBUG=ON
.optc
assignment to WW3 debug options, with an assignment to the UFS + "-init=snan,arrays" options, i.e.,optc="$optc -O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays"
. (Fig 1)optc
. (Fig 1)ww3_grid
where the error checking is tripped by the substring 'error' in the filenamescrip_errormod.F90
, by replacing theerr_pattern
just below the header fromerr_pattern='error'
toerr_pattern='[[:space:]]error[[:space:]]'
. (Fig 2) @JessicaMeixner-NOAA discovered this bug and the reason it occurs. This is a temporary fix that requireserror
to have some type of space (space, tab, end of line, carriage return) around it, so it will not get flagged if it is in a filename or part of a variable name, etc. This error is expected to go away when the CMAKE build system is complete.Expected behavior
forrtl: error (65): floating invalid
error inwmesmfmd.F90
causes the UFS simulation to terminate. (Fig 3)Screenshots
Fig 1

Fig 2

Fig 3

Additional context
The text was updated successfully, but these errors were encountered: