MOM6
|
Template for user to code up surface forcing.
Data Types | |
type | user_surface_forcing_cs |
This control structure should be used to store any run-time variables associated with the user-specified forcing. More... | |
Functions/Subroutines | |
subroutine, public | user_wind_forcing (sfc_state, forces, day, G, US, CS) |
This subroutine sets the surface wind stresses, forcestaux and forcestauy, in [R Z L T-2 ~> Pa]. These are the stresses in the direction of the model grid (i.e. the same direction as the u- and v- velocities). More... | |
subroutine, public | user_buoyancy_forcing (sfc_state, fluxes, day, dt, G, US, CS) |
This subroutine specifies the current surface fluxes of buoyancy or temperature and fresh water. It may also be modified to add surface fluxes of user provided tracers. More... | |
subroutine, public | user_surface_forcing_init (Time, G, US, param_file, diag, CS) |
This subroutine initializes the USER_surface_forcing module. More... | |
subroutine, public user_surface_forcing::user_buoyancy_forcing | ( | type(surface), intent(inout) | sfc_state, |
type(forcing), intent(inout) | fluxes, | ||
type(time_type), intent(in) | day, | ||
real, intent(in) | dt, | ||
type(ocean_grid_type), intent(in) | G, | ||
type(unit_scale_type), intent(in) | US, | ||
type(user_surface_forcing_cs), pointer | CS | ||
) |
This subroutine specifies the current surface fluxes of buoyancy or temperature and fresh water. It may also be modified to add surface fluxes of user provided tracers.
[in,out] | sfc_state | A structure containing fields that describe the surface state of the ocean. |
[in,out] | fluxes | A structure containing thermodynamic forcing fields |
[in] | day | The time of the fluxes |
[in] | dt | The amount of time over which the fluxes apply [s] |
[in] | g | The ocean's grid structure |
[in] | us | A dimensional unit scaling type |
cs | A pointer to the control structure returned by a previous call to user_surface_forcing_init |
Definition at line 103 of file user_surface_forcing.F90.
References mom_error_handler::mom_error().
subroutine, public user_surface_forcing::user_surface_forcing_init | ( | type(time_type), intent(in) | Time, |
type(ocean_grid_type), intent(in) | G, | ||
type(unit_scale_type), intent(in) | US, | ||
type(param_file_type), intent(in) | param_file, | ||
type(diag_ctrl), intent(in), target | diag, | ||
type(user_surface_forcing_cs), pointer | CS | ||
) |
This subroutine initializes the USER_surface_forcing module.
[in] | time | The current model time |
[in] | g | The ocean's grid structure |
[in] | us | A dimensional unit scaling type |
[in] | param_file | A structure to parse for run-time parameters |
[in] | diag | A structure that is used to regulate diagnostic output. |
cs | A pointer that is set to point to the control structure for this module |
Definition at line 240 of file user_surface_forcing.F90.
References mom_error_handler::mom_error().
Referenced by mom_surface_forcing::surface_forcing_init().
subroutine, public user_surface_forcing::user_wind_forcing | ( | type(surface), intent(inout) | sfc_state, |
type(mech_forcing), intent(inout) | forces, | ||
type(time_type), intent(in) | day, | ||
type(ocean_grid_type), intent(inout) | G, | ||
type(unit_scale_type), intent(in) | US, | ||
type(user_surface_forcing_cs), pointer | CS | ||
) |
This subroutine sets the surface wind stresses, forcestaux and forcestauy, in [R Z L T-2 ~> Pa]. These are the stresses in the direction of the model grid (i.e. the same direction as the u- and v- velocities).
[in,out] | sfc_state | A structure containing fields that describe the surface state of the ocean. |
[in,out] | forces | A structure with the driving mechanical forces |
[in] | day | The time of the fluxes |
[in,out] | g | The ocean's grid structure |
[in] | us | A dimensional unit scaling type |
cs | A pointer to the control structure returned by a previous call to user_surface_forcing_init |
Definition at line 52 of file user_surface_forcing.F90.
References mom_forcing_type::allocate_mech_forcing(), and mom_error_handler::mom_error().