Back to home page

MITgcm

 
 

    


File indexing completed on 2018-03-02 18:40:55 UTC

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
31566b6684 Alis*0001 #include "GAD_OPTIONS.h"
                0002 
aba3ddc7b7 Alis*0003 CBOP
                0004 C !ROUTINE: GAD_C2_ADV_Y
                0005 
                0006 C !INTERFACE: ==========================================================
31566b6684 Alis*0007       SUBROUTINE GAD_C2_ADV_Y( 
                0008      I           bi,bj,k,
                0009      I           vTrans,
                0010      I           tracer,
                0011      O           vT,
                0012      I           myThid )
                0013 
aba3ddc7b7 Alis*0014 C !DESCRIPTION:
527a84022c Alis*0015 C Calculates the area integrated meridional flux due to advection of a tracer
                0016 C using centered second-order interpolation:
aba3ddc7b7 Alis*0017 C \begin{equation*}
527a84022c Alis*0018 C F^y_{adv} = V \overline{\theta}^j
aba3ddc7b7 Alis*0019 C \end{equation*}
                0020 
                0021 C !USES: ===============================================================
                0022       IMPLICIT NONE
31566b6684 Alis*0023 #include "SIZE.h"
                0024 #include "GRID.h"
                0025 
aba3ddc7b7 Alis*0026 C !INPUT PARAMETERS: ===================================================
                0027 C  bi,bj                :: tile indices
                0028 C  k                    :: vertical level
                0029 C  vTrans               :: meridional volume transport
                0030 C  tracer               :: tracer field
                0031 C  myThid               :: thread number
31566b6684 Alis*0032       INTEGER bi,bj,k
                0033       _RL vTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
                0034       _RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
                0035       INTEGER myThid
                0036 
aba3ddc7b7 Alis*0037 C !OUTPUT PARAMETERS: ==================================================
                0038 C  vT                   :: meridional advective flux
                0039       _RL vT    (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
                0040 
                0041 C !LOCAL VARIABLES: ====================================================
                0042 C  i,j                  :: loop indices
31566b6684 Alis*0043       INTEGER i,j
aba3ddc7b7 Alis*0044 CEOP
31566b6684 Alis*0045 
                0046       DO i=1-Olx,sNx+Olx
                0047        vT(i,1-Oly)=0.
                0048       ENDDO
                0049       DO j=1-Oly+1,sNy+Oly
                0050        DO i=1-Olx,sNx+Olx
                0051         vT(i,j) = 
                0052      &   vTrans(i,j)*(Tracer(i,j)+Tracer(i,j-1))*0.5 _d 0
                0053        ENDDO
                0054       ENDDO
                0055 
                0056       RETURN
                0057       END