File indexing completed on 2024-02-29 06:10:25 UTC
view on githubraw file Latest commit a4576c7c on 2024-02-28 22:55:11 UTC
37609e3908 Jean*0001 #include "GMREDI_OPTIONS.h"
0002
0003
0004
0005
0006 SUBROUTINE GMREDI_DO_EXCH(
0007 I myTime, myIter, myThid )
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 IMPLICIT NONE
0018
0019
0020 #include "SIZE.h"
0021 #include "EEPARAMS.h"
0022 #include "PARAMS.h"
0023 #include "GMREDI.h"
0024
0025
0026
0027
0028
0029 _RL myTime
0030 INTEGER myIter
0031 INTEGER myThid
0032
0033
0034
0035
0036 #ifdef GM_BOLUS_ADVEC
5853335f7f Mich*0037 #ifdef ALLOW_EDDYPSI
0038 IF ( GM_InMomAsStress ) THEN
0039 #else
37609e3908 Jean*0040
0041
0042
0043
0044
0045
0046 IF ( useCubedSphereExchange
0047 & .AND. GM_AdvForm
0048 & .AND. .NOT.GM_AdvSeparate
0049 & .AND. useMultiDimAdvec ) THEN
5853335f7f Mich*0050 #endif
37609e3908 Jean*0051 #ifdef ALLOW_DEBUG
0052 IF (debugMode) CALL DEBUG_CALL('EXCH_UV(GM_PsiX,Y)',myThid)
0053 #endif
0054 CALL EXCH_UV_XYZ_RL( GM_PsiX, GM_PsiY, .TRUE., myThid )
0055 ENDIF
0056 #endif /* GM_BOLUS_ADVEC */
0057
a4576c7cde Juli*0058 #ifdef GM_GEOM_VARIABLE_K
0059 IF ( GM_useGEOM ) THEN
0060 _EXCH_XY_RL( GEOM_EKE , myThid )
0061 _BEGIN_MASTER( myThid )
0062
0063 IF ( GEOM_startAB .EQ. 0 ) GEOM_startAB = 1
0064 _END_MASTER( myThid )
0065 ENDIF
0066 #endif
0067
37609e3908 Jean*0068 RETURN
0069 END