Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/core_atmosphere/Registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,11 @@
<package name="les"
description="Variables and options associated with LES models"
active_when="trim(config_les_model) /= 'none'"/>
#ifdef DO_PHYSICS
<package name="sfclayer"
description="Variables and options associated with surface layer physics"
active_when="(trim(config_physics_suite) /= 'none' .and. trim(config_sfclayer_scheme) == 'suite') .or. any(trim(config_sfclayer_scheme) == [ character(len=StrKind) :: 'sf_monin_obukhov', 'sf_monin_obukhov_rev', 'sf_mynn' ])"/>
active_when="trim(config_sfclayer_scheme) /= 'off'"/>
#endif
</packages>


Expand Down
10 changes: 5 additions & 5 deletions src/core_atmosphere/mpas_atm_core_interface.F
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ function atm_setup_packages(configs, streamInfo, packages, iocontext) result(ier
integer :: local_ierr


ierr = atm_setup_packages_when(configs, packages)
if (ierr /= 0) then
return
end if

!
! Incremental analysis update
!
Expand Down Expand Up @@ -259,6 +254,11 @@ function atm_setup_packages(configs, streamInfo, packages, iocontext) result(ier

#endif

ierr = atm_setup_packages_when(configs, packages)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if users/community are expected to add new logic in this function, but adding a brief comment about this call needing to follow any new logic might be useful.

if (ierr /= 0) then
return
end if

end function atm_setup_packages


Expand Down