File indexing completed on 2024-10-29 05:10:24 UTC
view on githubraw file Latest commit c9bf1633 on 2024-10-29 03:40:17 UTC
c9bf163375 Ivan*0001 #include "CPP_EEOPTIONS.h"
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 SUBROUTINE G_ZERO_ADJ_1D(
0014 I NrIn, g_FieldFwd, myThid )
0015
0016
0017
0018
0019
0020
0021
0022 IMPLICIT NONE
0023
0024 #include "SIZE.h"
0025 #include "EEPARAMS.h"
0026
0027
0028
0029 INTEGER NrIn, myThid
0030 _RL g_FieldFwd(NrIn)
0031
0032
0033 INTEGER k
0034
0035
0036 DO k=1,NrIn
0037 g_FieldFwd(k) = 0. _d 0
0038 ENDDO
0039
0040 RETURN
0041 END
0042
0043
0044
0045
0046
0047 SUBROUTINE G_ZERO_ADJ_LOC(
0048 I NrIn, g_FieldFwd, myThid )
0049
0050
0051
0052
0053
0054
0055
0056 IMPLICIT NONE
0057
0058 #include "SIZE.h"
0059 #include "EEPARAMS.h"
0060
0061
0062
0063 INTEGER NrIn, myThid
0064 _RL g_FieldFwd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,NrIn)
0065
0066
0067 INTEGER i,j,k
0068
0069
0070 DO k=1,NrIn
0071 DO j=1-OLy,sNy+OLy
0072 DO i=1-OLx,sNx+OLx
0073 g_FieldFwd(i,j,k) = 0. _d 0
0074 ENDDO
0075 ENDDO
0076 ENDDO
0077
0078 RETURN
0079 END
0080
0081
0082
0083
0084
0085 SUBROUTINE G_ZERO_ADJ(
0086 I NrIn, g_FieldFwd, myThid )
0087
0088
0089
0090
0091
0092
0093
0094 IMPLICIT NONE
0095
0096 #include "SIZE.h"
0097 #include "EEPARAMS.h"
0098
0099
0100
0101 INTEGER NrIn, myThid
0102 _RL g_FieldFwd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,NrIn,nSx,nSy)
0103
0104
0105 INTEGER bi,bj
0106 INTEGER i,j,k
0107
0108
0109 DO bj=myByLo(myThid),myByHi(myThid)
0110 DO bi=myBxLo(myThid),myBxHi(myThid)
0111 DO k=1,NrIn
0112 DO j=1-OLy,sNy+OLy
0113 DO i=1-OLx,sNx+OLx
0114 g_FieldFwd(i,j,k,bi,bj) = 0. _d 0
0115 ENDDO
0116 ENDDO
0117 ENDDO
0118 ENDDO
0119 ENDDO
0120
0121 RETURN
0122 END