Skip to content
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
25 changes: 22 additions & 3 deletions physics/module_MYNNSFC_wrapper.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,29 @@ MODULE mynnsfc_wrapper

contains

subroutine mynnsfc_wrapper_init()
!! \section arg_table_mynnsfc_wrapper_init Argument Table
!! \htmlinclude mynnsfc_wrapper_init.html

! initialize tables for psih and psim (stable and unstable)
CALL PSI_INIT(psi_opt)
!!
subroutine mynnsfc_wrapper_init(errmsg, errflg)

character(len=*), intent(out) :: errmsg
integer, intent(out) :: errflg

! Initialize CCPP error handling variables
errmsg = ''
errflg = 0

! initialize tables for psih and psim (stable and unstable)
CALL PSI_INIT(psi_opt,errmsg,errflg)

IF (debug_code >= 1) THEN
print*,"CHECK INITIALIZATION OF PSI:"
print*,"psim_stab(0-1):",psim_stab(0),psim_stab(1)
print*,"psih_stab(0-1):",psih_stab(0),psih_stab(1)
print*,"psim_unstab(0-1):",psim_unstab(0),psim_unstab(1)
print*,"psih_unstab(0-1):",psih_unstab(0),psih_unstab(1)
ENDIF

end subroutine mynnsfc_wrapper_init

Expand Down
22 changes: 22 additions & 0 deletions physics/module_MYNNSFC_wrapper.meta
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
type = scheme
dependencies = machine.F,module_sf_mynn.F90

########################################################################
[ccpp-arg-table]
name = mynnsfc_wrapper_init
type = scheme
[errmsg]
standard_name = ccpp_error_message
long_name = error message for error handling in CCPP
units = none
dimensions = ()
type = character
kind = len=*
intent = out
optional = F
[errflg]
standard_name = ccpp_error_flag
long_name = error flag for error handling in CCPP
units = flag
dimensions = ()
type = integer
intent = out
optional = F

########################################################################
[ccpp-arg-table]
name = mynnsfc_wrapper_run
Expand Down
Loading