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

Bug in GF cumulus scheme when running in debug mode #37

Open
LarissaReames-NOAA opened this issue Jul 8, 2024 · 0 comments
Open

Bug in GF cumulus scheme when running in debug mode #37

LarissaReames-NOAA opened this issue Jul 8, 2024 · 0 comments

Comments

@LarissaReames-NOAA
Copy link

LarissaReames-NOAA commented Jul 8, 2024

ISSUE DESCRIPTION:

When compiled with DEBUG=true I get the following runtime error:

forrtl: warning (406): fort: (1): In call to GET_ZU_ZD_PDF_FIM, an array temporary was created for argument #2

which corresponds to this subroutine call:

call get_zu_zd_pdf_fim(kklev,p_cup(i,kts:kte),rand_vmas(i),zubeg,ipr,xland(i),zuh2,1,ierr(i),k22(i), & kfinalzu+1,zuo(i,kts:kte),kts,kte,ktf,beta_u,kbcon(i),csum(i),pmin_lev(i))

This is a totally new file added to the repository in #13 so I'm not really sure what the desired solution is here since I've never worked with this particular code before. My guess would be to create unique smaller-sized arrays that holds p_cup(i,kts:kte) and zuo(i,kts:kte) which I suspect will cause the same fortrtl error once the problem with p_cup is resolved.

Note that the code runs fine when not compiled with DEBUG turned on, which is probably why this has gone unnoticed.

Additionally please enter this information if applicable:
Compiled on Jet using jet_ifort compiler option with DEBUG=true. My loaded modules at compile and run time are:
1) cmake/3.28.1 2) gnu/13.2.0 3) intel/2023.2.0 4) impi/2023.2.0 5) pnetcdf/1.12.3 6) szip/2.1 7) hdf5parallel/1.10.5 8) netcdf-hdf5parallel/4.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant