Skip to content

Potential bug init_dim_l_pdaf #1

Description

@yumengch

Hi Lars,

Could you check the code in this line?

The array is allocated as allocate(id_lstate_in_pstate(dim_l)).

In the case that all variables are ndims == 2, dim_l is the number of variables. The check here uses wet_pts(3,domain_p), which is the number of wet layers. I assume it only makes sense for 3D variables. I guess a more appropriate check is id_lstate_in_pstate(dim_l).

if (id_lstate_in_pstate(wet_pts(3,domain_p)) > dim_state_p) then

Cheers,
Yumeng

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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