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
and I get a "floating invalid". Here is the backtrace from the core dump:
$ gdb cice core
Reading symbols from cice...
[New LWP 18341]
Core was generated by `./cice'.
Program terminated with signal SIGABRT, Aborted.
#0 raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x0000000001dc5151 in abort () at abort.c:79
#2 0x0000000001cf28c1 in for.signal_handler ()
#3 <signal handler called>
#4 0x00000000009ddce2 in ice_forcing::interp_coeff_monthly (recslot=2)
at /fs/homeu1/eccc/cmd/cmde/phb001/code/cice/cicecore/cicedynB/general/ice_forcing.F90:1238
#5 0x0000000000aa6680 in ice_forcing_bgc::get_forcing_bgc () at /fs/homeu1/eccc/cmd/cmde/phb001/code/cice/cicecore/cicedynB/general/ice_forcing_bgc.F90:184
#6 0x000000000104b191 in ice_init_column::init_bgc () at /fs/homeu1/eccc/cmd/cmde/phb001/code/cice/cicecore/shared/ice_init_column.F90:876
#7 0x0000000000407c91 in cice_initmod::init_restart () at /fs/homeu1/eccc/cmd/cmde/phb001/code/cice/cicecore/drivers/standalone/cice/CICE_InitMod.F90:437
#8 0x00000000004027b9 in cice_initmod::cice_init () at /fs/homeu1/eccc/cmd/cmde/phb001/code/cice/cicecore/drivers/standalone/cice/CICE_InitMod.F90:172
#9 0x0000000000401403 in cice_initmod::cice_initialize () at /fs/homeu1/eccc/cmd/cmde/phb001/code/cice/cicecore/drivers/standalone/cice/CICE_InitMod.F90:52
#10 0x0000000000400bf1 in icemodel () at /fs/homeu1/eccc/cmd/cmde/phb001/code/cice/cicecore/drivers/standalone/cice/CICE.F90:43
#11 0x0000000000400b72 in main ()
#12 0x0000000001dbe88f in __libc_start_main (main=0x400b40 <main>, argc=1, argv=0x7ffc522a41a8, init=0x1dbef40 <__libc_csu_init>,
fini=0x1dbefe0 <__libc_csu_fini>, rtld_fini=0x0, stack_end=0x7ffc522a4198) at ../csu/libc-start.c:308
#13 0x0000000000400a5a in _start () at ../sysdeps/x86_64/start.S:120
and ftime has a value of NaN in the core dump. I think this variable is used before it is defined in subroutine get_forcing_atmo, since get_forcing_atmo is called afterinit_restart in cice_init and init_restart calls init_bgc which calls interp_coeff_monthly.
Good catch @phil-blain ! I might have created this problem when we created and/or changed the Icepack interfaces -- the BGC code was difficult to isolate, and we've never had comprehensive tests for it. I wonder if it is possible to move the BGC initialization later in the code, after the parameter has been defined... or it might make more sense to define ftime earlier, since it's being used more generally and not just for atmo forcing.
I've stumbled upon an uninitialized value in the forcing code. I'm creating a test with
to replicate the bgc test in the base_suite, but in debug mode. I'm compiling with these flags: (
Macros.daley_intel
)and I get a "floating invalid". Here is the backtrace from the core dump:
The error is due to this line:
CICE/cicecore/cicedynB/general/ice_forcing.F90
Lines 1237 to 1238 in 819eedd
and
ftime
has a value of NaN in the core dump. I think this variable is used before it is defined in subroutineget_forcing_atmo
, sinceget_forcing_atmo
is called afterinit_restart
incice_init
andinit_restart
callsinit_bgc
which callsinterp_coeff_monthly
.CC: @njeffery @eclare108213
The text was updated successfully, but these errors were encountered: