Skip to content

Access of invalid array index #204

@gold2718

Description

@gold2718

Brief summary of bug

Running a DEBUG test (see details below) gives the error:

forrtl: severe (408): fort: (3): Subscript #1 of the array IRRIGATED has value -9999 which is less than the lower bound of 0

General bug information

CTSM version you are using: ctsm5.4.002_noresm_v3

Does this bug cause significantly incorrect results in the model's science? Yes

Configurations affected: HIST_CAM70%LT%NORESM%CAMoslo_CLM60%FATES-NOCOMP_CICE_BLOM%HYB%ECO_MOSART_DGLC%NOEVOLVE_SWAV_SESP_BGC%BPRP

Details of bug

Running test, ERS_D.ne30pg3_tn14.NEHIST.betzy_intel.allactive-defaultio.test_emis, where NEHIST is the compset above yields (on Betzy):


1401: forrtl: severe (408): fort: (3): Subscript #1 of the array IRRIGATED has v
alue -9999 which is less than the lower bound of 0
1401:
1401: Image PC Routine Line Source

1401: cesm.exe 000000000E8B161F Unknown Unknown Unknown
1401: cesm.exe 000000000A783231 irrigationmod_mp_ 1627 IrrigationMod.F90
1401: cesm.exe 000000000A77B06D irrigationmod_mp_ 1478 IrrigationMod.F90
1401: cesm.exe 00000000089E2AF8 clm_driver_mp_clm 834 clm_driver.F90
1401: cesm.exe 00000000088A9D28 lnd_comp_nuopc_mp 915 lnd_comp_nuopc.F90


### Important details of your setup / configuration so we can reproduce the bug

This does not appear to crash the model when not running in debug mode, however, adding a `write` statement just before line 1627 generates 41860268 lines of output (I think all with the -9999 index).

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions