96 |
# include "PTRACERS_FIELDS.h" |
# include "PTRACERS_FIELDS.h" |
97 |
# endif |
# endif |
98 |
# ifdef ALLOW_OBCS |
# ifdef ALLOW_OBCS |
99 |
# include "OBCS.h" |
# include "OBCS_FIELDS.h" |
100 |
# ifdef ALLOW_PTRACERS |
# ifdef ALLOW_PTRACERS |
101 |
# include "OBCS_PTRACERS.h" |
# include "OBCS_PTRACERS.h" |
102 |
# endif |
# endif |
264 |
CALL CALC_EP_FORCING(myThid) |
CALL CALC_EP_FORCING(myThid) |
265 |
#endif |
#endif |
266 |
|
|
267 |
|
#ifdef ALLOW_AUTODIFF_MONITOR_DIAG |
268 |
|
CALL DUMMY_IN_DYNAMICS( mytime, myiter, myThid ) |
269 |
|
#endif |
270 |
|
|
271 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
272 |
C-- HPF directive to help TAMC |
C-- HPF directive to help TAMC |
273 |
CHPF$ INDEPENDENT |
CHPF$ INDEPENDENT |
560 |
I guDissip, gvDissip, |
I guDissip, gvDissip, |
561 |
I myTime, myIter, myThid) |
I myTime, myIter, myThid) |
562 |
|
|
|
#ifdef ALLOW_OBCS |
|
|
C-- Apply open boundary conditions |
|
|
c IF (useOBCS) THEN |
|
|
c CALL OBCS_APPLY_UV( bi, bj, k, gU, gV, myThid ) |
|
|
c ENDIF |
|
|
#endif /* ALLOW_OBCS */ |
|
|
|
|
563 |
ENDIF |
ENDIF |
564 |
|
|
565 |
C-- end of dynamics k loop (1:Nr) |
C-- end of dynamics k loop (1:Nr) |
599 |
|
|
600 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
601 |
C-- Apply open boundary conditions |
C-- Apply open boundary conditions |
|
c IF ( useOBCS .AND.(implicitViscosity.OR.momImplVertAdv) ) THEN |
|
|
c DO K=1,Nr |
|
|
c CALL OBCS_APPLY_UV( bi, bj, k, gU, gV, myThid ) |
|
|
c ENDDO |
|
602 |
IF ( useOBCS ) THEN |
IF ( useOBCS ) THEN |
603 |
CALL OBCS_APPLY_UV( bi, bj, 0, gU, gV, myThid ) |
CALL OBCS_APPLY_UV( bi, bj, 0, gU, gV, myThid ) |
604 |
ENDIF |
ENDIF |
653 |
|
|
654 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
655 |
IF (useOBCS) THEN |
IF (useOBCS) THEN |
656 |
CALL OBCS_PRESCRIBE_EXCHANGES(myThid) |
CALL OBCS_EXCHANGES( myThid ) |
657 |
ENDIF |
ENDIF |
658 |
#endif |
#endif |
659 |
|
|
682 |
#endif /* ALLOW_DIAGNOSTICS */ |
#endif /* ALLOW_DIAGNOSTICS */ |
683 |
|
|
684 |
#ifdef ALLOW_DEBUG |
#ifdef ALLOW_DEBUG |
685 |
IF ( debugLevel .GE. debLevB ) THEN |
IF ( debugLevel .GE. debLevD ) THEN |
686 |
CALL DEBUG_STATS_RL(1,EtaN,'EtaN (DYNAMICS)',myThid) |
CALL DEBUG_STATS_RL(1,EtaN,'EtaN (DYNAMICS)',myThid) |
687 |
CALL DEBUG_STATS_RL(Nr,uVel,'Uvel (DYNAMICS)',myThid) |
CALL DEBUG_STATS_RL(Nr,uVel,'Uvel (DYNAMICS)',myThid) |
688 |
CALL DEBUG_STATS_RL(Nr,vVel,'Vvel (DYNAMICS)',myThid) |
CALL DEBUG_STATS_RL(Nr,vVel,'Vvel (DYNAMICS)',myThid) |
706 |
C- jmc: For safety checking only: This Exchange here should not change |
C- jmc: For safety checking only: This Exchange here should not change |
707 |
C the solution. If solution changes, it means something is wrong, |
C the solution. If solution changes, it means something is wrong, |
708 |
C but it does not mean that it is less wrong with this exchange. |
C but it does not mean that it is less wrong with this exchange. |
709 |
IF ( debugLevel .GT. debLevB ) THEN |
IF ( debugLevel .GE. debLevE ) THEN |
710 |
CALL EXCH_UV_XYZ_RL(gU,gV,.TRUE.,myThid) |
CALL EXCH_UV_XYZ_RL(gU,gV,.TRUE.,myThid) |
711 |
ENDIF |
ENDIF |
712 |
#endif |
#endif |