222 |
ENDDO |
ENDDO |
223 |
ENDDO |
ENDDO |
224 |
|
|
225 |
#ifndef ALLOW_AUTODIFF_TAMC |
cph-exch2#ifndef ALLOW_AUTODIFF_TAMC |
226 |
IF (useCubedSphereExchange) THEN |
IF (useCubedSphereExchange) THEN |
227 |
withSigns = .FALSE. |
withSigns = .FALSE. |
228 |
CALL FILL_CS_CORNER_UV_RS( |
CALL FILL_CS_CORNER_UV_RS( |
229 |
& withSigns, maskLocW,maskLocS, bi,bj, myThid ) |
& withSigns, maskLocW,maskLocS, bi,bj, myThid ) |
230 |
ENDIF |
ENDIF |
231 |
#endif |
cph-exch2#endif |
232 |
|
|
233 |
C-- Multiple passes for different directions on different tiles |
C-- Multiple passes for different directions on different tiles |
234 |
C-- For cube need one pass for each of red, green and blue axes. |
C-- For cube need one pass for each of red, green and blue axes. |
297 |
ENDDO |
ENDDO |
298 |
ENDDO |
ENDDO |
299 |
|
|
300 |
#ifndef ALLOW_AUTODIFF_TAMC |
cph-exch2#ifndef ALLOW_AUTODIFF_TAMC |
301 |
C- Internal exchange for calculations in X |
C- Internal exchange for calculations in X |
302 |
IF ( overlapOnly ) THEN |
IF ( overlapOnly ) THEN |
303 |
CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
306 |
& CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
& CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
307 |
& iceVol, bi,bj, myThid ) |
& iceVol, bi,bj, myThid ) |
308 |
ENDIF |
ENDIF |
309 |
#endif |
cph-exch2#endif |
310 |
|
|
311 |
C- Compute CFL number |
C- Compute CFL number |
312 |
IF ( useGridVolume ) THEN |
IF ( useGridVolume ) THEN |
354 |
& 'THSICE_ADVECTION: adv. scheme incompatibale with multi-dim' |
& 'THSICE_ADVECTION: adv. scheme incompatibale with multi-dim' |
355 |
ENDIF |
ENDIF |
356 |
|
|
357 |
#ifndef ALLOW_AUTODIFF_TAMC |
cph-exch2#ifndef ALLOW_AUTODIFF_TAMC |
358 |
C-- Internal exchange for next calculations in Y |
C-- Internal exchange for next calculations in Y |
359 |
IF ( overlapOnly .AND. ipass.EQ.1 ) THEN |
IF ( overlapOnly .AND. ipass.EQ.1 ) THEN |
360 |
CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
363 |
& CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
& CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
364 |
& iceVol, bi,bj, myThid ) |
& iceVol, bi,bj, myThid ) |
365 |
ENDIF |
ENDIF |
366 |
#endif |
cph-exch2#endif |
367 |
|
|
368 |
C-- Advective flux in X : done |
C-- Advective flux in X : done |
369 |
ENDIF |
ENDIF |
512 |
ENDDO |
ENDDO |
513 |
ENDDO |
ENDDO |
514 |
|
|
515 |
#ifndef ALLOW_AUTODIFF_TAMC |
cph-exch2#ifndef ALLOW_AUTODIFF_TAMC |
516 |
C- Internal exchange for calculations in Y |
C- Internal exchange for calculations in Y |
517 |
IF ( overlapOnly ) THEN |
IF ( overlapOnly ) THEN |
518 |
CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
521 |
& CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
& CALL FILL_CS_CORNER_TR_RL( 2, .FALSE., |
522 |
& iceVol, bi,bj, myThid ) |
& iceVol, bi,bj, myThid ) |
523 |
ENDIF |
ENDIF |
524 |
#endif |
cph-exch2#endif |
525 |
|
|
526 |
C- Compute CFL number |
C- Compute CFL number |
527 |
IF ( useGridVolume ) THEN |
IF ( useGridVolume ) THEN |
569 |
& 'THSICE_ADVECTION: adv. scheme incompatibale with mutli-dim' |
& 'THSICE_ADVECTION: adv. scheme incompatibale with mutli-dim' |
570 |
ENDIF |
ENDIF |
571 |
|
|
572 |
#ifndef ALLOW_AUTODIFF_TAMC |
cph-exch2#ifndef ALLOW_AUTODIFF_TAMC |
573 |
IF ( overlapOnly .AND. ipass.EQ.1 ) THEN |
IF ( overlapOnly .AND. ipass.EQ.1 ) THEN |
574 |
CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
575 |
& iceFld, bi,bj, myThid ) |
& iceFld, bi,bj, myThid ) |
577 |
& CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
& CALL FILL_CS_CORNER_TR_RL( 1, .FALSE., |
578 |
& iceVol, bi,bj, myThid ) |
& iceVol, bi,bj, myThid ) |
579 |
ENDIF |
ENDIF |
580 |
#endif |
cph-exch2#endif |
581 |
|
|
582 |
C- Advective flux in Y : done |
C- Advective flux in Y : done |
583 |
ENDIF |
ENDIF |