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

CCPP run _init and _final for schemes #86

Merged
merged 2 commits into from
May 31, 2018
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
78 changes: 69 additions & 9 deletions IPD_layer/IPD_driver_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,28 @@ module IPD_driver_cap

private

public :: ipd_initialize_cap, &
ipd_setup_step_cap, &
ipd_finalize_cap
public :: ipd_initialize_init_cap, &
ipd_initialize_run_cap, &
ipd_initialize_finalize_cap, &
ipd_setup_step_init_cap, &
ipd_setup_step_run_cap, &
ipd_setup_step_finalize_cap, &
ipd_finalize_init_cap, &
ipd_finalize_run_cap, &
ipd_finalize_finalize_cap

contains

function ipd_initialize_cap(ptr) bind(c) result(ierr)
function ipd_initialize_init_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr

ierr = 0

end function ipd_initialize_init_cap

function ipd_initialize_run_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr
Expand Down Expand Up @@ -121,9 +136,27 @@ function ipd_initialize_cap(ptr) bind(c) result(ierr)
l_snupx = snupx
l_salp_data = salp_data

end function ipd_initialize_cap
end function ipd_initialize_run_cap

function ipd_initialize_finalize_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr

ierr = 0

end function ipd_initialize_finalize_cap

function ipd_setup_step_init_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr

ierr = 0

end function ipd_setup_step_init_cap

function ipd_setup_step_cap(ptr) bind(c) result(ierr)
function ipd_setup_step_run_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr
Expand Down Expand Up @@ -171,9 +204,27 @@ function ipd_setup_step_cap(ptr) bind(c) result(ierr)
IPD_Diag=IPD_Diag, &
IPD_Restart=IPD_Restart)

end function IPD_setup_step_cap
end function IPD_setup_step_run_cap

function ipd_finalize_cap(ptr) bind(c) result(ierr)
function ipd_setup_step_finalize_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr

ierr = 0

end function ipd_setup_step_finalize_cap

function ipd_finalize_init_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr

ierr = 0

end function ipd_finalize_init_cap

function ipd_finalize_run_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr
Expand All @@ -182,6 +233,15 @@ function ipd_finalize_cap(ptr) bind(c) result(ierr)

call IPD_finalize()

end function ipd_finalize_cap
end function ipd_finalize_run_cap

function ipd_finalize_finalize_cap(ptr) bind(c) result(ierr)

integer(c_int32_t) :: ierr
type(c_ptr), intent(inout) :: ptr

ierr = 0

end function ipd_finalize_finalize_cap

end module IPD_driver_cap
166 changes: 0 additions & 166 deletions IPD_layer/scheme.xml

This file was deleted.

2 changes: 1 addition & 1 deletion physics/radlw_main.f
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ subroutine rrtmg_lw_run &
& HLW0,HLWB,FLXPRF, & ! --- optional
& cld_lwp, cld_ref_liq, cld_iwp, cld_ref_ice, &
& cld_rwp,cld_ref_rain, cld_swp, cld_ref_snow, &
& cld_od, errmsg, errflg &
& cld_od, errmsg, errflg &
& )


Expand Down