!$Id: uv_depths.F90,v 1.12 2006-03-01 15:54:07 kbk Exp $ #include "cppdefs.h" !----------------------------------------------------------------------- !BOP ! ! !IROUTINE: uv_depths - calculate depths in u and v points.\label{sec-uv-depth} ! ! !INTERFACE: subroutine uv_depths(vel_depth_method) ! ! !DESCRIPTION: ! ! In this routine which is called once during the model initialisation, ! the bathymetry value in the U- and the V-points are calculated from the ! bathymetry values in the T-points. The interpolation depends on the value ! which is given to {\tt vel\_depth\_method}: ! ! \begin{equation} ! H^u_{i,j} = \left\{ ! \begin{array}{ll} ! \displaystyle ! \frac12 \left(H_{i,j}+H_{i+1,j}\right), & ! \displaystyle ! \mbox{ for {\tt vel\_depth\_method}} =0, \\ \\ ! \displaystyle ! \min\left\{H_{i,j}+H_{i+1,j}\right\}, & ! \displaystyle ! \mbox{ for {\tt vel\_depth\_method}} =1, \\ \\ ! \displaystyle ! \min\left\{H_{i,j}+H_{i+1,j}\right\}, & ! \displaystyle ! \mbox{ for {\tt vel\_depth\_method}} =2 \mbox{ and } \min\{H_{i,j}i,H_{i+1,j}\}