62 |
C afy :: horizontal advective flux, y direction |
C afy :: horizontal advective flux, y direction |
63 |
C gFld :: tendency of seaice field |
C gFld :: tendency of seaice field |
64 |
C xA,yA :: "areas" of X and Y face of tracer cells |
C xA,yA :: "areas" of X and Y face of tracer cells |
65 |
INTEGER i, j, bi, bj, iTracer |
INTEGER i, j, bi, bj |
66 |
INTEGER ks |
INTEGER ks |
67 |
LOGICAL SEAICEmultiDimAdvection |
LOGICAL SEAICEmultiDimAdvection |
68 |
|
#ifdef SEAICE_AGE |
69 |
|
INTEGER iTracer |
70 |
|
#endif |
71 |
|
|
72 |
C- MPI+MTH: apply exch (sure with exch1) only to array in common block |
C- MPI+MTH: apply exch (sure with exch1) only to array in common block |
73 |
COMMON / SEAICE_ADVDIFF_LOCAL / uc, vc |
COMMON / SEAICE_ADVDIFF_LOCAL / uc, vc |
302 |
CALL SEAICE_ADVECTION( |
CALL SEAICE_ADVECTION( |
303 |
I GAD_ICEAGETR+iTracer-1, SEAICEadvSchAge, |
I GAD_ICEAGETR+iTracer-1, SEAICEadvSchAge, |
304 |
I uc(1-OLx,1-OLy,bi,bj), vc(1-OLx,1-OLy,bi,bj), |
I uc(1-OLx,1-OLy,bi,bj), vc(1-OLx,1-OLy,bi,bj), |
305 |
I uTrans, vTrans, IceAgeTr(1-OLx,1-OLy,bi,bj,iTracer), |
I uTrans, vTrans, IceAgeTr(1-OLx,1-OLy,bi,bj,iTracer), |
306 |
I recip_heff, |
I recip_heff, |
307 |
O gFld, afx, afy, |
O gFld, afx, afy, |
308 |
I bi, bj, myTime, myIter, myThid ) |
I bi, bj, myTime, myIter, myThid ) |
318 |
DO j=1,sNy |
DO j=1,sNy |
319 |
DO i=1,sNx |
DO i=1,sNx |
320 |
IceAgeTr(i,j,bi,bj,iTracer) = HEFFM(i,j,bi,bj) * ( |
IceAgeTr(i,j,bi,bj,iTracer) = HEFFM(i,j,bi,bj) * ( |
321 |
& IceAgeTr(i,j,bi,bj,iTracer) |
& IceAgeTr(i,j,bi,bj,iTracer) |
322 |
& + SEAICE_deltaTtherm * gFld(i,j) |
& + SEAICE_deltaTtherm * gFld(i,j) |
323 |
& ) |
& ) |
324 |
ENDDO |
ENDDO |
359 |
#ifdef SEAICE_AGE |
#ifdef SEAICE_AGE |
360 |
IF ( SEAICEadvAge ) THEN |
IF ( SEAICEadvAge ) THEN |
361 |
DO iTracer = 1, SEAICE_num |
DO iTracer = 1, SEAICE_num |
362 |
CALL ADVECT( uc, vc, iceAgeTr(1-Olx,1-Oly,1,1,iTracer), |
CALL ADVECT( uc, vc, iceAgeTr(1-Olx,1-Oly,1,1,iTracer), |
363 |
& fldNm1, HEFFM, myThid ) |
& fldNm1, HEFFM, myThid ) |
364 |
ENDDO |
ENDDO |
365 |
ENDIF |
ENDIF |