106 |
cs! this is not correct! <= need paired exchange for DXF,DYF |
cs! this is not correct! <= need paired exchange for DXF,DYF |
107 |
_EXCH_XY_R4(DXF,myThid) |
_EXCH_XY_R4(DXF,myThid) |
108 |
_EXCH_XY_R4(DYF,myThid) |
_EXCH_XY_R4(DYF,myThid) |
109 |
|
IF (useCubedSphereExchange) THEN |
110 |
cs! fix overlaps: |
cs! fix overlaps: |
111 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
112 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
DO bi = myBxLo(myThid), myBxHi(myThid) |
128 |
ENDDO |
ENDDO |
129 |
ENDDO |
ENDDO |
130 |
ENDDO |
ENDDO |
131 |
|
ENDIF |
132 |
cs |
cs |
133 |
|
|
134 |
CALL MDSREADFIELD('RA.bin',readBinaryPrec,'RS',1,RA, 1,myThid) |
CALL MDSREADFIELD('RA.bin',readBinaryPrec,'RS',1,RA, 1,myThid) |
138 |
C *********** this are not degbugged ************ |
C *********** this are not degbugged ************ |
139 |
CALL MDSREADFIELD('LONG.bin',readBinaryPrec,'RS',1,XG, 1,myThid) |
CALL MDSREADFIELD('LONG.bin',readBinaryPrec,'RS',1,XG, 1,myThid) |
140 |
CALL MDSREADFIELD('LATG.bin',readBinaryPrec,'RS',1,YG, 1,myThid) |
CALL MDSREADFIELD('LATG.bin',readBinaryPrec,'RS',1,YG, 1,myThid) |
141 |
|
IF (useCubedSphereExchange) THEN |
142 |
cs- this block needed by cubed sphere until we write more useful I/O routines |
cs- this block needed by cubed sphere until we write more useful I/O routines |
143 |
bi=3 |
bi=3 |
144 |
bj=1 |
bj=1 |
155 |
bj=bj+2 |
bj=bj+2 |
156 |
YG(sNx+1,1,bj,1)=YG(1,1,bi,1) |
YG(sNx+1,1,bj,1)=YG(1,1,bi,1) |
157 |
cs- end block |
cs- end block |
158 |
|
ENDIF |
159 |
CALL EXCH_Z_XY_RS(XG,myThid) |
CALL EXCH_Z_XY_RS(XG,myThid) |
160 |
CALL EXCH_Z_XY_RS(YG,myThid) |
CALL EXCH_Z_XY_RS(YG,myThid) |
161 |
|
|
164 |
cs- this block needed by cubed sphere until we write more useful I/O routines |
cs- this block needed by cubed sphere until we write more useful I/O routines |
165 |
C !!! _EXCH_ZUV_XY_R4(DXV, DYU, unSigned, myThid) |
C !!! _EXCH_ZUV_XY_R4(DXV, DYU, unSigned, myThid) |
166 |
cs! this is not correct <= need paired exchange for dxv,dyu |
cs! this is not correct <= need paired exchange for dxv,dyu |
167 |
cs CALL EXCH_Z_XY_RS(DXV,myThid) |
IF (.NOT.useCubedSphereExchange) THEN |
168 |
cs CALL EXCH_Z_XY_RS(DYU,myThid) |
CALL EXCH_Z_XY_RS(DXV,myThid) |
169 |
|
CALL EXCH_Z_XY_RS(DYU,myThid) |
170 |
|
ELSE |
171 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
172 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
DO bi = myBxLo(myThid), myBxHi(myThid) |
173 |
cs! fix overlaps: |
cs! fix overlaps: |
190 |
ENDDO |
ENDDO |
191 |
ENDDO |
ENDDO |
192 |
cs- end block |
cs- end block |
193 |
|
ENDIF |
194 |
|
|
195 |
CALL MDSREADFIELD('RAZ.bin',readBinaryPrec,'RS',1,RAZ, 1,myThid) |
CALL MDSREADFIELD('RAZ.bin',readBinaryPrec,'RS',1,RAZ, 1,myThid) |
196 |
|
IF (useCubedSphereExchange) THEN |
197 |
cs- this block needed by cubed sphere until we write more useful I/O routines |
cs- this block needed by cubed sphere until we write more useful I/O routines |
198 |
CALL EXCH_Z_XY_RS(RAZ , myThid ) |
CALL EXCH_Z_XY_RS(RAZ , myThid ) |
199 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
203 |
ENDDO |
ENDDO |
204 |
ENDDO |
ENDDO |
205 |
cs- end block |
cs- end block |
206 |
|
ENDIF |
207 |
CALL EXCH_Z_XY_RS(RAZ,myThid) |
CALL EXCH_Z_XY_RS(RAZ,myThid) |
208 |
|
|
209 |
C- Staggered (u,v pairs) quantities |
C- Staggered (u,v pairs) quantities |
213 |
|
|
214 |
CALL MDSREADFIELD('RAW.bin',readBinaryPrec,'RS',1,RAW, 1,myThid) |
CALL MDSREADFIELD('RAW.bin',readBinaryPrec,'RS',1,RAW, 1,myThid) |
215 |
CALL MDSREADFIELD('RAS.bin',readBinaryPrec,'RS',1,RAS, 1,myThid) |
CALL MDSREADFIELD('RAS.bin',readBinaryPrec,'RS',1,RAS, 1,myThid) |
216 |
|
IF (useCubedSphereExchange) THEN |
217 |
cs- this block needed by cubed sphere until we write more useful I/O routines |
cs- this block needed by cubed sphere until we write more useful I/O routines |
218 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
219 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
DO bi = myBxLo(myThid), myBxHi(myThid) |
224 |
ENDDO |
ENDDO |
225 |
ENDDO |
ENDDO |
226 |
cs- end block |
cs- end block |
227 |
|
ENDIF |
228 |
CALL EXCH_UV_XY_RS(RAW,RAS,.FALSE.,myThid) |
CALL EXCH_UV_XY_RS(RAW,RAS,.FALSE.,myThid) |
229 |
|
|
230 |
CALL MDSREADFIELD('DXG.bin',readBinaryPrec,'RS',1,DXG, 1,myThid) |
CALL MDSREADFIELD('DXG.bin',readBinaryPrec,'RS',1,DXG, 1,myThid) |
231 |
CALL MDSREADFIELD('DYG.bin',readBinaryPrec,'RS',1,DYG, 1,myThid) |
CALL MDSREADFIELD('DYG.bin',readBinaryPrec,'RS',1,DYG, 1,myThid) |
232 |
|
IF (useCubedSphereExchange) THEN |
233 |
cs- this block needed by cubed sphere until we write more useful I/O routines |
cs- this block needed by cubed sphere until we write more useful I/O routines |
234 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
235 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
DO bi = myBxLo(myThid), myBxHi(myThid) |
240 |
ENDDO |
ENDDO |
241 |
ENDDO |
ENDDO |
242 |
cs- end block |
cs- end block |
243 |
|
ENDIF |
244 |
CALL EXCH_UV_XY_RS(DYG,DXG,.FALSE.,myThid) |
CALL EXCH_UV_XY_RS(DYG,DXG,.FALSE.,myThid) |
245 |
|
|
246 |
c write(10) XC |
c write(10) XC |