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

add interface documentation #284

Merged
merged 3 commits into from
Nov 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 9 additions & 3 deletions columnphysics/icepack_atmo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ subroutine neutral_drag_coeffs (apnd, hpnd, &
end subroutine neutral_drag_coeffs

!=======================================================================
!autodocument_start icepack_atm_boundary
!

subroutine icepack_atm_boundary(sfctype, &
Tsf, potT, &
Expand Down Expand Up @@ -849,6 +851,10 @@ subroutine icepack_atm_boundary(sfctype, &
real (kind=dbl_kind), optional, intent(out) :: &
Uref ! reference height wind speed (m/s)

!autodocument_end

! local variables

real (kind=dbl_kind) :: &
worku, workv, workr

Expand Down Expand Up @@ -901,9 +907,9 @@ subroutine icepack_atm_boundary(sfctype, &

end subroutine icepack_atm_boundary

!------------------------------------------------------------
! Define functions
!------------------------------------------------------------
!------------------------------------------------------------
! Define functions
!------------------------------------------------------------

!=======================================================================

Expand Down
12 changes: 10 additions & 2 deletions columnphysics/icepack_brine.F90
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ subroutine calculate_drho (nblyr, i_grid, b_grid, &
end subroutine calculate_drho

!=======================================================================

!autodocument_start icepack_init_hbrine
! Initialize brine height tracer

subroutine icepack_init_hbrine(bgrid, igrid, cgrid, &
Expand All @@ -934,6 +934,10 @@ subroutine icepack_init_hbrine(bgrid, igrid, cgrid, &
icgrid , & ! interface grid for CICE (shortwave variable)
swgrid ! grid for ice tracers used in dEdd scheme

!autodocument_end

! local variables

integer (kind=int_kind) :: &
k ! vertical index

Expand Down Expand Up @@ -1002,7 +1006,7 @@ subroutine icepack_init_hbrine(bgrid, igrid, cgrid, &
end subroutine icepack_init_hbrine

!=======================================================================

!autodocument_start icepack_init_zsalinity
! Initialize zSalinity

subroutine icepack_init_zsalinity(nblyr,ntrcr_o, Rayleigh_criteria, &
Expand All @@ -1026,6 +1030,10 @@ subroutine icepack_init_zsalinity(nblyr,ntrcr_o, Rayleigh_criteria, &
real (kind=dbl_kind), dimension(:,:), intent(inout):: &
trcrn ! bgc subset of trcrn

!autodocument_end

! local variables

integer (kind=int_kind) :: &
k, n

Expand Down
11 changes: 9 additions & 2 deletions columnphysics/icepack_itd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,7 @@ subroutine zerolayer_check (ncat, nilyr, &
end subroutine zerolayer_check

!=======================================================================
!autodocument_start icepack_init_itd
! Initialize area fraction and thickness boundaries for the itd model
!
! authors: William H. Lipscomb and Elizabeth C. Hunke, LANL
Expand All @@ -1682,6 +1683,8 @@ subroutine icepack_init_itd(ncat, hin_max)
real (kind=dbl_kind), intent(out) :: &
hin_max(0:ncat) ! category limits (m)

!autodocument_end

! local variables

integer (kind=int_kind) :: &
Expand Down Expand Up @@ -1847,7 +1850,7 @@ subroutine icepack_init_itd(ncat, hin_max)
end subroutine icepack_init_itd

!=======================================================================

!autodocument_start icepack_init_itd_hist
! Initialize area fraction and thickness boundaries for the itd model
!
! authors: William H. Lipscomb and Elizabeth C. Hunke, LANL
Expand All @@ -1864,6 +1867,8 @@ subroutine icepack_init_itd_hist (ncat, hin_max, c_hi_range)
character (len=35), intent(out) :: &
c_hi_range(ncat) ! string for history output

!autodocument_end

! local variables

integer (kind=int_kind) :: &
Expand Down Expand Up @@ -1900,7 +1905,7 @@ subroutine icepack_init_itd_hist (ncat, hin_max, c_hi_range)
end subroutine icepack_init_itd_hist

!=======================================================================

!autodocument_start icepack_aggregate
! Aggregate ice state variables over thickness categories.
!
! authors: C. M. Bitz, UW
Expand Down Expand Up @@ -1950,6 +1955,8 @@ subroutine icepack_aggregate (ncat, &
real (kind=dbl_kind), dimension (:), intent(out) :: &
trcr ! ice tracers

!autodocument_end

! local variables

integer (kind=int_kind) :: &
Expand Down
8 changes: 6 additions & 2 deletions columnphysics/icepack_mechred.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ subroutine ridge_shift (ntrcr, dt, &
end subroutine ridge_shift

!=======================================================================

!autodocument_start icepack_ice_strength
! Compute the strength of the ice pack, defined as the energy (J m-2)
! dissipated per unit area removed from the ice pack under compression,
! and assumed proportional to the change in potential energy caused
Expand Down Expand Up @@ -1594,6 +1594,8 @@ subroutine icepack_ice_strength (ncat, &
real (kind=dbl_kind), intent(inout) :: &
strength ! ice strength (N/m)

!autodocument_end

! local variables

real (kind=dbl_kind) :: &
Expand Down Expand Up @@ -1688,7 +1690,7 @@ subroutine icepack_ice_strength (ncat, &
end subroutine icepack_ice_strength

!=======================================================================
!
!autodocument_start icepack_step_ridge
! Computes sea ice mechanical deformation
!
! authors: William H. Lipscomb, LANL
Expand Down Expand Up @@ -1791,6 +1793,8 @@ subroutine icepack_step_ridge (dt, ndtd, &
logical (kind=log_kind), dimension(:), intent(inout) :: &
first_ice ! true until ice forms

!autodocument_end

! local variables

real (kind=dbl_kind) :: &
Expand Down
3 changes: 3 additions & 0 deletions columnphysics/icepack_ocean.F90
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module icepack_ocean

!=======================================================================
!=======================================================================
!autodocument_start icepack_ocn_mixed_layer
! Compute the mixed layer heat balance and update the SST.
! Compute the energy available to freeze or melt ice.
! NOTE: SST changes due to fluxes through the ice are computed in
Expand Down Expand Up @@ -70,6 +71,8 @@ subroutine icepack_ocn_mixed_layer (alvdr_ocn, swvdr, &
sst , & ! sea surface temperature (C)
frzmlt ! freezing/melting potential (W/m^2)

!autodocument_end

! local variables

real (kind=dbl_kind), parameter :: &
Expand Down
6 changes: 6 additions & 0 deletions columnphysics/icepack_orbital.F90
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module icepack_orbital

!=======================================================================

!autodocument_start icepack_init_orbit
! Compute orbital parameters for the specified date.

subroutine icepack_init_orbit(iyear_AD_in, eccen_in, obliqr_in, &
Expand All @@ -58,6 +59,8 @@ subroutine icepack_init_orbit(iyear_AD_in, eccen_in, obliqr_in, &
real(kind=dbl_kind), optional, intent(in) :: eccf_in ! earth orbit eccentricity factor
logical(kind=log_kind), optional, intent(in) :: log_print_in ! Flags print of status/error

!autodocument_end

character(len=*),parameter :: subname='(icepack_init_orbit)'

!call icepack_warnings_add(subname//' ')
Expand Down Expand Up @@ -85,6 +88,7 @@ end subroutine icepack_init_orbit

!=======================================================================

!autodocument_start icepack_query_orbit
! Compute orbital parameters for the specified date.

subroutine icepack_query_orbit(iyear_AD_out, eccen_out, obliqr_out, &
Expand All @@ -104,6 +108,8 @@ subroutine icepack_query_orbit(iyear_AD_out, eccen_out, obliqr_out, &
real(kind=dbl_kind), optional, intent(out) :: eccf_out ! earth orbit eccentricity factor
logical(kind=log_kind), optional, intent(out) :: log_print_out ! Flags print of status/error

!autodocument_end

character(len=*),parameter :: subname='(icepack_query_orbit)'

!call icepack_warnings_add(subname//' ')
Expand Down
14 changes: 14 additions & 0 deletions columnphysics/icepack_parameters.F90
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ module icepack_parameters

!=======================================================================

!autodocument_start icepack_init_parameters
! subroutine to set the column package internal parameters

subroutine icepack_init_parameters( &
Expand Down Expand Up @@ -644,6 +645,8 @@ subroutine icepack_init_parameters( &
real (kind=dbl_kind), intent(in), optional :: &
hp1_in ! critical parameter for pond ice thickness

!autodocument_end

character(len=*),parameter :: subname='(icepack_init_parameters)'

if (present(rhos_in) ) rhos = rhos_in
Expand Down Expand Up @@ -792,6 +795,7 @@ end subroutine icepack_init_parameters

!=======================================================================

!autodocument_start icepack_query_parameters
! subroutine to query the column package internal parameters

subroutine icepack_query_parameters( &
Expand Down Expand Up @@ -1109,6 +1113,8 @@ subroutine icepack_query_parameters( &
real (kind=dbl_kind), intent(out), optional :: &
hp1_out ! critical parameter for pond ice thickness

!autodocument_end

character(len=*),parameter :: subname='(icepack_query_parameters)'

if (present(puny_out) ) puny_out = puny
Expand Down Expand Up @@ -1301,13 +1307,16 @@ end subroutine icepack_query_parameters

!=======================================================================

!autodocument_start icepack_write_parameters
! subroutine to write the column package internal parameters

subroutine icepack_write_parameters(iounit)

integer (kind=int_kind), intent(in) :: &
iounit ! unit number for output

!autodocument_end

character(len=*),parameter :: subname='(icepack_write_parameters)'

write(iounit,*) subname
Expand Down Expand Up @@ -1461,8 +1470,13 @@ end subroutine icepack_write_parameters

!=======================================================================

!autodocument_start icepack_recompute_constants
! subroutine to reinitialize some derived constants

subroutine icepack_recompute_constants()

!autodocument_end

character(len=*),parameter :: subname='(icepack_recompute_constants)'

cprho = cp_ocn*rhow
Expand Down
8 changes: 6 additions & 2 deletions columnphysics/icepack_shortwave.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3732,7 +3732,7 @@ subroutine compute_shortwave_trcr(n_algae, nslyr, &
end subroutine compute_shortwave_trcr

!=======================================================================
!
!autodocument_start icepack_prep_radiation
! Scales radiation fields computed on the previous time step.
!
! authors: Elizabeth Hunke, LANL
Expand Down Expand Up @@ -3781,6 +3781,8 @@ subroutine icepack_prep_radiation (ncat, nilyr, nslyr, &
Iswabsn , & ! SW radiation absorbed in ice layers (W m-2)
Sswabsn ! SW radiation absorbed in snow layers (W m-2)

!autodocument_end

! local variables

integer (kind=int_kind) :: &
Expand Down Expand Up @@ -3832,7 +3834,7 @@ subroutine icepack_prep_radiation (ncat, nilyr, nslyr, &
end subroutine icepack_prep_radiation

!=======================================================================
!
!autodocument_start icepack_step_radiation
! Computes radiation fields
!
! authors: William H. Lipscomb, LANL
Expand Down Expand Up @@ -3990,6 +3992,8 @@ subroutine icepack_step_radiation (dt, ncat, &
logical (kind=log_kind), optional :: &
initonly ! flag to indicate init only, default is false

!autodocument_end

! local variables

integer (kind=int_kind) :: &
Expand Down
3 changes: 3 additions & 0 deletions columnphysics/icepack_therm_itd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,7 @@ subroutine add_new_ice (ncat, nilyr, nblyr, &
end subroutine add_new_ice

!=======================================================================
!autodocument_start icepack_step_therm2
! Driver for thermodynamic changes not needed for coupling:
! transport in thickness space, lateral growth and melting.
!
Expand Down Expand Up @@ -1603,6 +1604,8 @@ subroutine icepack_step_therm2 (dt, ncat, n_aero, nltrcr, &
real (kind=dbl_kind), intent(in), optional :: &
yday ! day of year

!autodocument_end

character(len=*),parameter :: subname='(icepack_step_therm2)'

!-----------------------------------------------------------------
Expand Down
Loading