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

1D test setup broken after PR #410 #416

Closed
jmaerz opened this issue Oct 23, 2024 · 3 comments · Fixed by #425
Closed

1D test setup broken after PR #410 #416

jmaerz opened this issue Oct 23, 2024 · 3 comments · Fixed by #425
Labels
BLOM Issues mainly concerning the BLOM code base bug Something isn't working

Comments

@jmaerz
Copy link
Collaborator

jmaerz commented Oct 23, 2024

Hi @mvertens , cc @TomasTorsvik and @JorgSchwinger ,
after your PR #410 that I pulled in, the 1D setup seem to be broken and runs fail with the error message below. I haven't looked deeper into it, but maybe you could have a look? - it seem to be coming from changes in BLOM, not in iHAMOCC.

I did a run test with a MCT-setup on betzy and it didn't crash - so the issue seems to only affect runs in the 1D setup.

init_timevars: number of baroclinic time steps per day:           24

 rdlim: resolved parameters:
 nday1:                                   0
 nday2:                                  90
 nyear ,nmonth ,nday ,nsec :     1990 ,01 ,01 ,00000
 nyear0,nmonth0,nday0,nsec0:     1990 ,01 ,01 ,00000
 barotr. steps per barocl. step:         60
 runid:                          SC_20210824
 rstfrq:                                 30
 rstmon:                                  T
 rstann:                                  F

 itest =    1, jtest =    1 found on processor     1

bigrid: nreg = 2
bigrid: global domain with arctic patch

stderr:
At line 4095 of file ../phy/mod_xc.F90
Fortran runtime error: Index '-3' of dimension 2 of array 'a' below lower bound of -2

Error termination. Backtrace:
#0  0x7f54ba8b3d11 in ???
#1  0x7f54ba8b4859 in ???
#2  0x7f54ba8b4ed6 in ???
#3  0x56103539a12f in __mod_xc_MOD_xctilr
	at ../phy/mod_xc.F90:4095
#4  0x56103521132a in __mod_bigrid_MOD_bigrid
	at ../phy/mod_bigrid.F90:126
#5  0x5610352d9c22 in __mod_inigeo_MOD_inigeo
	at ../phy/mod_inigeo.F90:123
#6  0x561035212b55 in __mod_blom_init_MOD_blom_init
	at ../phy/mod_blom_init.F90:116
#7  0x56103539c5f8 in blom
	at ../drivers/nocoupler/blom.F:38
#8  0x5610351f37c2 in main
	at ../drivers/nocoupler/blom.F:26

@jmaerz jmaerz added bug Something isn't working BLOM Issues mainly concerning the BLOM code base labels Oct 23, 2024
@JorgSchwinger
Copy link
Contributor

JorgSchwinger commented Oct 23, 2024

Could it be that there is a #ifdef ARCTIC left somewhere? Or that the new logical arctic-switch is not set correctly in this setup?

@jmaerz
Copy link
Collaborator Author

jmaerz commented Oct 23, 2024

@JorgSchwinger , a grep -iRn --exclude-dir=builddir\* "ARCTIC" . in the top folder didn't give any hint into this direction, but thanks for suggesting! With use_arctic=.false. in the limits namelist, I get for the 1D setup:

MSC_SSTGA              4

 init_timevars: number of baroclinic time steps per day:           24

 rdlim: resolved parameters:
 nday1:                                   0
 nday2:                                  90
 nyear ,nmonth ,nday ,nsec :     1990 ,01 ,01 ,00000
 nyear0,nmonth0,nday0,nsec0:     1990 ,01 ,01 ,00000
 barotr. steps per barocl. step:         60
 runid:                          SC_20210824
 rstfrq:                                 30
 rstmon:                                  T
 rstann:                                  F

 itest =    1, jtest =    1 found on processor     1

bigrid: nreg = 2
bigrid: global domain with arctic patch

stderr:

Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0  0x7f201ccebd11 in ???
#1  0x7f201cceaee5 in ???
#2  0x7f201c9b208f in ???
	at /build/glibc-LcI20x/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
#3  0x555bb5549873 in __mod_inigeo_MOD_inigeo
	at ../phy/mod_inigeo.F90:233
#4  0x555bb5481b55 in __mod_blom_init_MOD_blom_init
	at ../phy/mod_blom_init.F90:116
#5  0x555bb560b5f8 in blom
	at ../drivers/nocoupler/blom.F:38
#6  0x555bb54627c2 in main
	at ../drivers/nocoupler/blom.F:26

@TomasTorsvik
Copy link
Contributor

TomasTorsvik commented Oct 24, 2024

@jmaerz - I can confirm that I get the same errors when I test the single column setup.

The errors appear after commit c54a2d7

@TomasTorsvik TomasTorsvik linked a pull request Oct 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOM Issues mainly concerning the BLOM code base bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants