Could we have a bit more explanations about how physics_ptend_init works?do ls,lu,lv,lq decide what to be updated and prevent updating fields if .false.?what's the use of psetcols?
Thank you! subroutine physics_ptend_init(ptend, psetcols, name, ls, lu, lv, lq)
!-----------------------------------------------------------------------
! Allocate the fields in the structure which are specified.
! Initialize the parameterization tendency structure to "empty"
!-----------------------------------------------------------------------
!------------------------------Arguments--------------------------------
type(physics_ptend), intent(out) :: ptend ! Parameterization tendencies
integer, intent(in) :: psetcols ! maximum number of columns
character(len=*) :: name ! optional name of parameterization which produced tendencies.
logical, optional :: ls ! if true, then fields to support dsdt are allocated
logical, optional :: lu ! if true, then fields to support dudt are allocated
logical, optional :: lv ! if true, then fields to support dvdt are allocated
logical, dimension(pcnst),optional :: lq ! if true, then fields to support dqdt are allocated