Skip to content

Optional arguments #355

@AndersJensen-NOAA

Description

@AndersJensen-NOAA

I have 7 optional arguments in tempo version 3.

     real(kind_phys), optional, intent(inout) :: nc(:,:)
     real(kind_phys), optional, intent(inout) :: nwfa(:,:)
     real(kind_phys), optional, intent(inout) :: nifa(:,:)
     real(kind_phys), optional, intent(in   ) :: nwfa2d(:)
     real(kind_phys), optional, intent(in   ) :: nifa2d(:)
     real(kind_phys), optional, intent(inout) :: ng(:,:)
     real(kind_phys), optional, intent(inout) :: volg(:,:)

The first 5 are controlled by ltaerosol and the next two are controlled by lthailaware. The two variable controlled by lthailaware are graupel number (ng) and graupel volume (volg). These are declared as optional in the meta data file as well.

When both ltaerosol are lthailaware are set to false and I add these print statements to tempo_run:

     if (present(nwfa2d)) write(*,*) 'nwfa2d present'
     if (present(nifa2d)) write(*,*) 'nifa2d present'
     if (present(nwfa)) write(*,*) 'nwfa present'
     if (present(nifa)) write(*,*) 'nifa present'
     if (present(nc)) write(*,*) 'nc present'
     if (present(ng)) write(*,*) 'ng present'
     if (present(volg)) write(*,*) 'volg present'

i get multiple prints of 'ng present' in the log file. note that ntgnc = -99 in the log file and graupel number is not in the field table.

Here's the build location for the caps: /scratch4/BMC/wrfruc/jensen/ufs_tempo_dev/build/UFSATM/ccpp/physics

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions