SAMSIM
Modules | Functions/Subroutines
mo_functions.f90 File Reference

Modules

module  mo_functions
 Module houses functions which have no home :(.
 

Functions/Subroutines

real(wp) function mo_functions::func_density (T, S)
 Calculates the physical density for given S and T. More...
 
real(wp) function mo_functions::func_freeboard (N_active, Nlayer, psi_s, psi_g, m, thick, m_snow, freeboard_snow_flag)
 Calculates the freeboard of the 1d ice column. More...
 
real(wp) function mo_functions::func_albedo (thick_snow, T_snow, psi_l, thick_min, albedo_flag)
 Calculates the albedo. More...
 
real(wp) function mo_functions::func_sat_o2 (T, S_bu)
 Calculates the oxygen saturation as a function of salinity and temperature. More...
 
real(wp) function mo_functions::func_t_freeze (S_bu, salt_flag)
 Calculates the freezing temperature. Salt_flag determines if either ocean salt or NAcl is used. More...
 
subroutine mo_functions::sub_notzflux (time, fl_sw, fl_rest)
 Calculates the incoming shortwave and other fluxes according to p. 193-194 PhD Notz. More...
 
subroutine mo_functions::sub_input (length_input, fl_sw_input, fl_lw_input, T2m_input, precip_input, time_input)
 Reads in data for atmoflux_flag ==2. More...
 
subroutine mo_functions::sub_turb_flux (T_bottom, S_bu_bottom, T, S_abs, m, dt, N_bgc, bgc_bottom, bgc_abs)
 Calculates salt and tracer mixing between lowest layer and underlying water. More...
 
subroutine mo_functions::sub_melt_thick (psi_l, psi_s, psi_g, T, T_freeze, T_top, fl_Q, thick_snow, dt, melt_thick, thick, thick_min)
 Calculates the thickness of the meltwater film. More...
 
subroutine mo_functions::sub_melt_snow (melt_thick, thick, thick_snow, H_abs, H_abs_snow, m, m_snow, psi_g_snow)
 Calculates how the meltwater film interacts with snow. More...