next up previous
Next: filope.F Up: The Proudman Oceanographic Laboratory Previous: downwell.F

Subsections


endstep.F


endstep

Description

This routine is called at the end of each baroclinic time step.

A series of subroutines are called which update or read in new meteorological and river inflow data as required, update sea surface salinity using evaporation-precipitation, calculate heat exchange at the sea surface, output checkpoint data to restart the model run and do particle tracking. Logical options determine which of the subroutines are used in a particular model run.

A call is made to a data output subroutine.

Subroutine Arguments

none

Local variables

nbmo is zero when checkpoint data (for a restart) is to be written.

Global variables changed

istress, icloud, isalt

Logical units

none

Order of Things

  1. Increment counters governing updating stress, salt and cloud arrays.
  2. Optional - call metset or pointmet to do time interpolation of meteorological parameters and read in new data when necessary.
  3. Optional - call fwin to update salinity and temperature in response to river inflow and read in new data when necessary.
  4. Optional - call evap_prep and saltflux to calculate evaporation and precipitation and the corresponding change in surface salinity.
  5. Optional - call heatin to calculate heat exchange at the sea surface.
  6. Update buoyancy after heat advection and freshwater inflow, if used.
  7. Call data_out to output data.
  8. Optional - at the appropriate time step, call chkpnt to output checkpoint data for restart.
  9. Optional - call lagrange_update to update particle locations for particle tracking.

Calls

metset, pointmet
fwin
evap_prep, saltflux
heatin
bcalc
data_out
chkpnt
b3ddbg
lagrange_update

Called By

b3drun.F

Options - Logical

bulk_met - the meteorological data file contains data in 2D arrays.
point_met - the meteorological data file contains data at a single point.
rivers - include freshwater inflows from rivers.
lsaltflux - include salinity fluxes at the surface due to the difference between evaporation and precipitation.
lchkpnt - output data to allow a warm start to a model run.
part_tracking - do particle tracking.

Options - Compiler

DEBUG - output variables for debugging.

Known Issues

none


next up previous
Next: filope.F Up: The Proudman Oceanographic Laboratory Previous: downwell.F
The AMMP Project 2005-04-20