62 |
C diffK4 :: bi-harmonic diffusion coefficient |
C diffK4 :: bi-harmonic diffusion coefficient |
63 |
C KappaRT :: 3-D array for vertical diffusion coefficient |
C KappaRT :: 3-D array for vertical diffusion coefficient |
64 |
C Tracer :: tracer field |
C Tracer :: tracer field |
65 |
C tracerIdentity :: identifier for the tracer (required only for KPP) |
C tracerIdentity :: identifier for the tracer (required for KPP and GM) |
66 |
C advectionScheme :: advection scheme to use |
C advectionScheme :: advection scheme to use |
67 |
C calcAdvection :: =False if Advec terms computed with multiDim scheme |
C calcAdvection :: =False if Advec terms computed with multiDim scheme |
68 |
C myThid :: thread number |
C myThid :: thread number |
131 |
|
|
132 |
C-- Unless we have already calculated the advection terms we initialize |
C-- Unless we have already calculated the advection terms we initialize |
133 |
C the tendency to zero. |
C the tendency to zero. |
134 |
IF (calcAdvection) THEN |
C <== now done earlier at the beginning of thermodynamics. |
135 |
DO j=1-Oly,sNy+Oly |
c IF (calcAdvection) THEN |
136 |
DO i=1-Olx,sNx+Olx |
c DO j=1-Oly,sNy+Oly |
137 |
gTracer(i,j,k,bi,bj)=0. _d 0 |
c DO i=1-Olx,sNx+Olx |
138 |
ENDDO |
c gTracer(i,j,k,bi,bj)=0. _d 0 |
139 |
ENDDO |
c ENDDO |
140 |
ENDIF |
c ENDDO |
141 |
|
c ENDIF |
142 |
|
|
143 |
C-- Pre-calculate del^2 T if bi-harmonic coefficient is non-zero |
C-- Pre-calculate del^2 T if bi-harmonic coefficient is non-zero |
144 |
IF (diffK4 .NE. 0.) THEN |
IF (diffK4 .NE. 0.) THEN |
403 |
I iMin,iMax,jMin,jMax,bi,bj,k,km1, |
I iMin,iMax,jMin,jMax,bi,bj,k,km1, |
404 |
I KappaRT, |
I KappaRT, |
405 |
U df ) |
U df ) |
406 |
|
#ifdef ALLOW_PTRACERS |
407 |
|
ELSEIF (tracerIdentity .GE. GAD_TR1) THEN |
408 |
|
CALL KPP_TRANSPORT_PTR( |
409 |
|
I iMin,iMax,jMin,jMax,bi,bj,k,km1, |
410 |
|
I tracerIdentity-GAD_TR1+1,KappaRT, |
411 |
|
U df ) |
412 |
|
#endif |
413 |
ELSE |
ELSE |
414 |
|
PRINT*,'invalid tracer indentity: ', tracerIdentity |
415 |
STOP 'GAD_CALC_RHS: Ooops' |
STOP 'GAD_CALC_RHS: Ooops' |
416 |
ENDIF |
ENDIF |
417 |
DO j=1-Oly,sNy+Oly |
DO j=1-Oly,sNy+Oly |