/[MITgcm]/MITgcm/pkg/generic_advdiff/gad_dst3fl_adv_x.F
ViewVC logotype

Annotation of /MITgcm/pkg/generic_advdiff/gad_dst3fl_adv_x.F

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


Revision 1.3.2.1 - (hide annotations) (download)
Tue Feb 26 16:04:48 2002 UTC (22 years, 2 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.3: +14 -12 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.3.2.1 C $Header: /u/gcmpack/MITgcm/pkg/generic_advdiff/gad_dst3fl_adv_x.F,v 1.4 2001/11/08 23:39:34 heimbach Exp $
2 heimbach 1.2 C $Name: $
3 adcroft 1.1
4     #include "GAD_OPTIONS.h"
5    
6     SUBROUTINE GAD_DST3FL_ADV_X(
7     I bi,bj,k,deltaT,
8     I uTrans, uVel,
9     I tracer,
10     O uT,
11     I myThid )
12     C /==========================================================\
13     C | SUBROUTINE GAD_DST3FL_ADV_X |
14     C | o Compute Zonal advective Flux of Tracer using |
15     C | 3rd Order DST Sceheme with flux limiting |
16     C |==========================================================|
17     IMPLICIT NONE
18    
19     C == GLobal variables ==
20     #include "SIZE.h"
21     #include "GRID.h"
22     #include "GAD.h"
23    
24     C == Routine arguments ==
25     INTEGER bi,bj,k
26     _RL deltaT
27     _RL uTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
28     _RL uVel(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
29     _RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
30     _RL uT (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
31     INTEGER myThid
32    
33     C == Local variables ==
34     INTEGER i,j
35 adcroft 1.3 _RL Rjm,Rj,Rjp,cfl,d0,d1,psiP,psiM,thetaP,thetaM
36 adcroft 1.1
37     DO j=1-Oly,sNy+Oly
38 adcroft 1.3.2.1 uT(1-Olx,j)=0.D0
39     uT(2-Olx,j)=0.D0
40     uT(sNx+Olx,j)=0.D0
41 adcroft 1.1 DO i=1-Olx+2,sNx+Olx-1
42     Rjp=(tracer(i+1,j)-tracer(i,j))*maskW(i+1,j,k,bi,bj)
43     Rj =(tracer(i,j)-tracer(i-1,j))*maskW(i,j,k,bi,bj)
44     Rjm=(tracer(i-1,j)-tracer(i-2,j))*maskW(i-1,j,k,bi,bj)
45    
46 adcroft 1.3 cfl=abs(uVel(i,j,k,bi,bj)*deltaT*recip_dxc(i,j,bi,bj))
47 adcroft 1.3.2.1 d0=(2.D0-cfl)*(1.D0-cfl)*oneSixth
48     d1=(1.D0-cfl*cfl)*oneSixth
49     c thetaP=0.D0
50     c IF (Rj.NE.0.D0) thetaP=Rjm/Rj
51 adcroft 1.3 thetaP=Rjm/(1.D-20+Rj)
52 adcroft 1.1 psiP=d0+d1*thetaP
53 adcroft 1.3.2.1 psiP=max(0.D0, min(min(1.D0,psiP),
54     & (1.D0-cfl)/(1.D-20+cfl)*thetaP))
55 adcroft 1.3 thetaM=Rjp/(1.D-20+Rj)
56 adcroft 1.3.2.1 c thetaM=0.D0
57     c IF (Rj.NE.0.D0) thetaM=Rjp/Rj
58 adcroft 1.1 psiM=d0+d1*thetaM
59 adcroft 1.3.2.1 psiM=max(0.D0, min(min(1.D0,psiM),
60     & (1.D0-cfl)/(1.D-20+cfl)*thetaM))
61 adcroft 1.1 uT(i,j)=
62 heimbach 1.2 & 0.5*(uTrans(i,j)+abs(uTrans(i,j)))
63     & *( Tracer(i-1,j) + psiP*Rj )
64     & +0.5*(uTrans(i,j)-abs(uTrans(i,j)))
65     & *( Tracer( i ,j) - psiM*Rj )
66 adcroft 1.1
67     ENDDO
68     ENDDO
69    
70     RETURN
71     END

  ViewVC Help
Powered by ViewVC 1.1.22