Skip to content

provide AK BK through Configfile for AdvCore #50

@weiyuan-jiang

Description

@weiyuan-jiang

DynCore can read AK-BK through the configure file, but not the AdvCore. To provide AdvCore with such function, we can create a reading subroutine shared by both cores. Or, we can simply copy those lines from Dyncore to AdvCore.

call ESMF_ConfigFindLabel( cf, 'AK:', isPresent=isPresent, rc = status )
VERIFY_(STATUS)
if (isPresent) then
do L = 0, SIZE(AK)-1
call ESMF_ConfigNextLine ( CF, rc=STATUS )
call ESMF_ConfigGetAttribute( cf, AK(L), rc = status )
VERIFY_(STATUS)
enddo
else
ak_is_missing = .true.
endif
call ESMF_ConfigFindLabel( cf, 'BK:', isPresent=isPresent, rc = status )
VERIFY_(STATUS)
if (isPresent) then
do L = 0, SIZE(bk)-1
call ESMF_ConfigNextLine ( CF, rc=STATUS )
call ESMF_ConfigGetAttribute( cf, BK(L), rc = status )
VERIFY_(STATUS)
enddo
else
bk_is_missing = .true.
endif
@tclune

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