File indexing completed on 2018-03-02 18:36:13 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
34b7cbca00 Jean*0001 #include "CPP_EEOPTIONS.h"
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 SUBROUTINE RESET_HALO_RL(
0014 U glFld,
0015 I fixVal, kSize, myThid )
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 IMPLICIT NONE
0027 #include "SIZE.h"
0028 #include "EEPARAMS.h"
0029
0030
0031
0032
0033
0034
0035
0036 INTEGER kSize
0037 _RL glFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,kSize,nSx,nSy)
0038 _RL fixVal
0039 INTEGER myThid
0040
0041
0042
0043 INTEGER bi, bj, k
0044 INTEGER ii, i, j
0045
0046
0047 DO bj = myByLo(myThid), myByHi(myThid)
0048 DO bi = myBxLo(myThid), myBxHi(myThid)
0049
0050 DO k=1,kSize
0051
0052 DO j=1-OLy,sNy+OLy
0053 IF ( j.LT.1 .OR. j.GT.sNy ) THEN
0054 DO i=1-OLx,sNx+OLx
0055 glFld(i,j,k,bi,bj) = fixVal
0056 ENDDO
0057 ELSE
0058 DO ii=1-OLx,OLx
0059 i = ii
0060 IF ( ii.GE.1 ) i= ii+sNx
0061 glFld(i,j,k,bi,bj) = fixVal
0062 ENDDO
0063 ENDIF
0064 ENDDO
0065
0066 ENDDO
0067
0068
0069 ENDDO
0070 ENDDO
0071
0072 RETURN
0073 END
0074
0075
0076
0077
0078
0079
0080 SUBROUTINE RESET_HALO_RS(
0081 U glFld,
0082 I fixVal, kSize, myThid )
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093 IMPLICIT NONE
0094 #include "SIZE.h"
0095 #include "EEPARAMS.h"
0096
0097
0098
0099
0100
0101
0102
0103 INTEGER kSize
0104 _RS glFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,kSize,nSx,nSy)
0105 _RS fixVal
0106 INTEGER myThid
0107
0108
0109
0110 INTEGER bi, bj, k
0111 INTEGER ii, i, j
0112
0113
0114 DO bj = myByLo(myThid), myByHi(myThid)
0115 DO bi = myBxLo(myThid), myBxHi(myThid)
0116
0117 DO k=1,kSize
0118
0119 DO j=1-OLy,sNy+OLy
0120 IF ( j.LT.1 .OR. j.GT.sNy ) THEN
0121 DO i=1-OLx,sNx+OLx
0122 glFld(i,j,k,bi,bj) = fixVal
0123 ENDDO
0124 ELSE
0125 DO ii=1-OLx,OLx
0126 i = ii
0127 IF ( ii.GE.1 ) i= ii+sNx
0128 glFld(i,j,k,bi,bj) = fixVal
0129 ENDDO
0130 ENDIF
0131 ENDDO
0132
0133 ENDDO
0134
0135
0136 ENDDO
0137 ENDDO
0138
0139 RETURN
0140 END