3 |
|
|
4 |
#include "PACKAGES_CONFIG.h" |
#include "PACKAGES_CONFIG.h" |
5 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
6 |
|
#undef DYNAMICS_GUGV_EXCH_CHECK |
7 |
|
|
8 |
CBOP |
CBOP |
9 |
C !ROUTINE: DYNAMICS |
C !ROUTINE: DYNAMICS |
220 |
C--- |
C--- |
221 |
CEOP |
CEOP |
222 |
|
|
223 |
|
#ifdef ALLOW_DEBUG |
224 |
|
IF ( debugLevel .GE. debLevB ) |
225 |
|
& CALL DEBUG_ENTER( 'DYNAMICS', myThid ) |
226 |
|
#endif |
227 |
|
|
228 |
C-- Call to routine for calculation of |
C-- Call to routine for calculation of |
229 |
C Eliassen-Palm-flux-forced U-tendency, |
C Eliassen-Palm-flux-forced U-tendency, |
230 |
C if desired: |
C if desired: |
434 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
435 |
CALL IMPLDIFF( |
CALL IMPLDIFF( |
436 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |
437 |
I 0, KappaRU,recip_HFacW, |
I -1, KappaRU,recip_HFacW, |
438 |
U gU, |
U gU, |
439 |
I myThid ) |
I myThid ) |
440 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
443 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
444 |
CALL IMPLDIFF( |
CALL IMPLDIFF( |
445 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |
446 |
I 0, KappaRV,recip_HFacS, |
I -2, KappaRV,recip_HFacS, |
447 |
U gV, |
U gV, |
448 |
I myThid ) |
I myThid ) |
449 |
ENDIF |
ENDIF |
494 |
C-- Step forward W field in N-H algorithm |
C-- Step forward W field in N-H algorithm |
495 |
IF ( momStepping .AND. nonHydrostatic ) THEN |
IF ( momStepping .AND. nonHydrostatic ) THEN |
496 |
#ifdef ALLOW_DEBUG |
#ifdef ALLOW_DEBUG |
497 |
IF ( debugLevel .GE. debLevB ) |
IF ( debugLevel .GE. debLevB ) |
498 |
& CALL DEBUG_CALL('CALC_GW',myThid) |
& CALL DEBUG_CALL('CALC_GW', myThid ) |
499 |
#endif |
#endif |
500 |
CALL TIMER_START('CALC_GW [DYNAMICS]',myThid) |
CALL TIMER_START('CALC_GW [DYNAMICS]',myThid) |
501 |
CALL CALC_GW( myTime, myIter, myThid ) |
CALL CALC_GW( myTime, myIter, myThid ) |
550 |
ENDIF |
ENDIF |
551 |
#endif |
#endif |
552 |
|
|
553 |
|
#ifdef DYNAMICS_GUGV_EXCH_CHECK |
554 |
|
C- jmc: For safety checking only: This Exchange here should not change |
555 |
|
C the solution. If solution changes, it means something is wrong, |
556 |
|
C but it does not mean that it is less wrong with this exchange. |
557 |
|
IF ( debugLevel .GT. debLevB ) THEN |
558 |
|
CALL EXCH_UV_XYZ_RL(gU,gV,.TRUE.,myThid) |
559 |
|
ENDIF |
560 |
|
#endif |
561 |
|
|
562 |
|
#ifdef ALLOW_DEBUG |
563 |
|
IF ( debugLevel .GE. debLevB ) |
564 |
|
& CALL DEBUG_LEAVE( 'DYNAMICS', myThid ) |
565 |
|
#endif |
566 |
|
|
567 |
RETURN |
RETURN |
568 |
END |
END |