Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace dynamic constituent routine with register phase #147

Merged
merged 3 commits into from
Nov 5, 2024
Merged
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
2 changes: 2 additions & 0 deletions schemes/musica/musica_ccpp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module musica_ccpp

contains

!> \section arg_table_musica_ccpp_register Argument Table
!! \htmlinclude musica_ccpp_register.html
subroutine musica_ccpp_register(solver_type, num_grid_cells, constituent_props, errmsg, errcode)
use ccpp_constituent_prop_mod, only: ccpp_constituent_properties_t

Expand Down
38 changes: 36 additions & 2 deletions schemes/musica/musica_ccpp.meta
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,41 @@
name = musica_ccpp
type = scheme
dependencies = micm/musica_ccpp_micm.F90,micm/musica_ccpp_micm_util.F90,tuvx/musica_ccpp_tuvx.F90,tuvx/musica_ccpp_tuvx_height_grid.F90,musica_ccpp_util.F90
dynamic_constituent_routine = musica_ccpp_register

[ccpp-arg-table]
name = musica_ccpp_register
type = scheme
[ solver_type ]
standard_name = micm_solver_type
units = none
type = integer
dimensions = ()
intent = in
[ num_grid_cells ]
standard_name = number_of_grid_cells
units = count
type = integer
dimensions = ()
intent = in
[ constituent_props ]
standard_name = dynamic_constituents_for_musica_ccpp
units = none
dimensions = (:)
allocatable = True
type = ccpp_constituent_properties_t
intent = out
[ errmsg ]
standard_name = ccpp_error_message
units = none
type = character | kind = len=512
dimensions = ()
intent = out
[ errcode ]
standard_name = ccpp_error_code
units = 1
type = integer
dimensions = ()
intent = out

[ccpp-arg-table]
name = musica_ccpp_init
Expand Down Expand Up @@ -140,4 +174,4 @@
units = 1
type = integer
dimensions = ()
intent = out
intent = out