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

Diff of /MITgcm/pkg/generic_advdiff/gad_del2.F

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

revision 1.1 by adcroft, Wed May 30 19:34:48 2001 UTC revision 1.2 by adcroft, Thu Sep 20 20:07:06 2001 UTC
# Line 3  C $Name$ Line 3  C $Name$
3    
4  #include "GAD_OPTIONS.h"  #include "GAD_OPTIONS.h"
5    
6    CBOP
7    C !ROUTINE: GAD_DEL2
8    
9    C !INTERFACE: ==========================================================
10        SUBROUTINE GAD_DEL2(        SUBROUTINE GAD_DEL2(
11       I           bi,bj,k,       I           bi,bj,k,
12       I           dTdx,dTdy,       I           dTdx,dTdy,
13       O           del2,       O           del2,
14       I           myThid )       I           myThid )
       IMPLICIT NONE  
15    
16  C     == GLobal variables ==  C !DESCRIPTION:
17    C Calculates the horizontal Laplacian of a tracer:
18    C \begin{equation*}
19    C \nabla^2 \theta = \partial_{xx} \theta + \partial_{yy} \theta
20    C \end{equation*}
21    
22    C !USES: ===============================================================
23          IMPLICIT NONE
24  #include "SIZE.h"  #include "SIZE.h"
25  #include "GRID.h"  #include "GRID.h"
26    
27  C     == Routine arguments ==  C !INPUT PARAMETERS: ===================================================
28    C  bi,bj                :: tile indices
29    C  k                    :: vertical level
30    C  dTx                  :: zonal tracer gradient
31    C  dTy                  :: meridional tracer gradient
32    C  myThid               :: thread number
33        INTEGER bi,bj,k        INTEGER bi,bj,k
34        _RL dTdx(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL dTdx(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
35        _RL dTdy(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL dTdy(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
       _RL del2(1-OLx:sNx+OLx,1-OLy:sNy+OLy)  
36        INTEGER myThid        INTEGER myThid
37    
38  C     == Local variables ==  C !OUTPUT PARAMETERS: ==================================================
39    C  del2                 :: Laplacian of tracer
40          _RL del2(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41    
42    C !LOCAL VARIABLES: ====================================================
43    C  i,j                  :: loop indices
44        INTEGER i,j        INTEGER i,j
45    CEOP
46    
47  C     Difference of zonal fluxes ...  C     Difference of zonal fluxes ...
48        DO j=1-Oly,sNy+Oly        DO j=1-Oly,sNy+Oly

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22