Skip to content

index out of range in foggy conditions #19

Description

@fjansson

In rrtmg_lw_rtrnmr.f90, subroutine rtrnmr, there are several suspect-looking accesses to cldfrac(lev-1) in the loop over lev ending at lev=1. I'm hitting this one in a DALES run which happens to have cloud in the lowest model layer. A debug build stops with the message

At line 499 of file /home/jansson/dales-tester/dales/external/RRTMG/RRTMG_LW/src/rrtmg_lw_rtrnmr.f90
Fortran runtime error: Index '0' of dimension 1 of array 'cldfrac' below lower bound of 1

It's of course possible we're doing something wrong on the DALES side. But looking at the RRTMG_LW code, it seems if the lowest level is cloudy there is an access out of bounds.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions