/[MITgcm]/MITgcm/pkg/mom_fluxform/mom_v_coriolis.F
ViewVC logotype

Annotation of /MITgcm/pkg/mom_fluxform/mom_v_coriolis.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4.2.1 - (hide annotations) (download)
Tue Feb 26 16:04:49 2002 UTC (22 years, 4 months ago) by adcroft
Branch: release1
CVS Tags: release1_p13_pre, release1_p13, release1_p8, release1_p9, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, release1_p7, release1_chkpt44d_post, release1_p11, release1_p12, release1_p10, release1_p16, release1_p17, release1_p14, release1_p15, release1_p12_pre
Branch point for: release1_50yr
Changes since 1.4: +17 -2 lines
Merging changes on MAIN between checkpoint43 and checkpoint43a-release1mods
Command: cvs -q update -jcheckpoint43 -jcheckpoint43a-release1mods -d -P

These changes are most of the changes between c43 and c44 except those
that occured after "12:45 11 Jan 2002". As far as I can tell it is
checkpoint43 with the following mods:

  o fix bug in mom_vi_del2uv
  o select when filters are applied ; add options to zonal_filter (data.zonfilt)  o gmredi: fix Pb in the adiabatic form ; add options (.e.g. Bolus advection)
  o update AIM experiments (NCEP input files)
  o improve and extend diagnostics (Monitor, TimeAve with NonLin-FrSurf)
  o added some stuff for AD
  o Jamar wet-points

This update does not contain the following mods that are in checkpoint44

  o bug fix in pkg/generic_advdiff/
    - thread related bug, bi,bj arguments in vertical advection routines
  o some changes to pkg/autodiff, pkg/cost, pkg/exf, pkg/ecco,
    verification/carbon and model/src/ related to adjoint
  o some new Matlab scripts for diagnosing model density
    - utils/matlab/dens_poly3.m and ini_poly3.m

The list of exclusions is accurate based on a "cvs diff". The list of
inclusions is based on the record in doc/tag-index which may not be complete.

1 adcroft 1.4.2.1 C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/mom_fluxform/mom_v_coriolis.F,v 1.4.2.1 2002/02/26 16:04:49 adcroft Exp $
2 adcroft 1.3 C $Name: $
3 adcroft 1.2
4     #include "CPP_OPTIONS.h"
5    
6 adcroft 1.3 CBOP
7     C !ROUTINE: MOM_V_CORIOLIS
8    
9     C !INTERFACE: ==========================================================
10 adcroft 1.2 SUBROUTINE MOM_V_CORIOLIS(
11     I bi,bj,k,uFld,
12     U vCoriolisTerm,
13     I myThid)
14    
15 adcroft 1.3 C !DESCRIPTION:
16     C Calculates the horizontal Coriolis term in the meridional equation:
17     C \begin{equation*}
18     C -\overline{f}^j \overline{u}^{ij}
19     C \end{equation*}
20 adcroft 1.2
21 adcroft 1.3 C !USES: ===============================================================
22     IMPLICIT NONE
23 adcroft 1.2 #include "SIZE.h"
24     #include "DYNVARS.h"
25     #include "EEPARAMS.h"
26     #include "PARAMS.h"
27     #include "GRID.h"
28     #include "SURFACE.h"
29    
30 adcroft 1.3 C !INPUT PARAMETERS: ===================================================
31     C bi,bj :: tile indices
32     C k :: vertical level
33     C uFld :: zonal flow
34     C myThid :: thread number
35 adcroft 1.2 INTEGER bi,bj,K
36     _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 adcroft 1.3 INTEGER myThid
38    
39     C !OUTPUT PARAMETERS: ==================================================
40     C vCoriolisTerm :: Coriolis term
41 adcroft 1.2 _RL vCoriolisTerm(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42    
43 adcroft 1.3 C !LOCAL VARIABLES: ====================================================
44     C i,j :: loop indices
45     INTEGER I,J
46 adcroft 1.4.2.1 _RL one
47     PARAMETER(one=1.d0)
48 adcroft 1.3 CEOP
49 adcroft 1.2
50 adcroft 1.4 IF (useEnergyConservingCoriolis) THEN
51     C Energy conserving discretization
52     DO j=1-Oly+1,sNy+Oly
53     DO i=1-Olx,sNx+Olx-1
54     vCoriolisTerm(i,j) =
55 adcroft 1.4.2.1 & -0.5*( _fCori(i, j ,bi,bj)
56 adcroft 1.4 & *0.5*( uFld( i , j )+uFld(i+1, j ) )
57     & + _fCori(i,j-1,bi,bj)
58     & *0.5*( uFld( i ,j-1)+uFld(i+1,j-1) ) )
59     ENDDO
60     ENDDO
61     ELSE
62     C Original discretization
63     DO j=1-Oly+1,sNy+Oly
64     DO i=1-Olx,sNx+Olx-1
65 adcroft 1.2 vCoriolisTerm(i,j) =
66     & -0.5*(_fCori(i, j ,bi,bj)+_fCori(i,j-1,bi,bj))
67     & *0.25*( uFld(i, j )+uFld(i+1, j )
68     & +uFld(i,j-1)+uFld(i+1,j-1)
69     & )
70 adcroft 1.4.2.1 ENDDO
71     ENDDO
72     ENDIF
73    
74     IF (useJamartWetPoints) THEN
75     C Scale term so that only "wet" points are used
76     C Due to: Jamart and Ozer, 1986, JGR 91 (C9), 10,621-10,631
77     C "Numerical Boundary Layers and Spurious Residual Flows"
78     DO j=1-Oly+1,sNy+Oly
79     DO i=1-Olx,sNx+Olx-1
80     vCoriolisTerm(i,j) = vCoriolisTerm(i,j)
81     & *4.d0/max(one, maskW( i , j ,k,bi,bj)+maskW(i+1, j ,k,bi,bj)
82     & +maskW( i ,j-1,k,bi,bj)+maskW(i+1,j-1,k,bi,bj) )
83 adcroft 1.4 ENDDO
84 adcroft 1.2 ENDDO
85 adcroft 1.4 ENDIF
86 adcroft 1.2
87     RETURN
88     END

  ViewVC Help
Powered by ViewVC 1.1.22