1 |
C $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "MDSIO_OPTIONS.h" |
#include "MDSIO_OPTIONS.h" |
5 |
|
|
79 |
_RL arr_gl(sNx,nSx,nPx,sNy,nSy,nPy,Nr) |
_RL arr_gl(sNx,nSx,nPx,sNy,nSy,nPy,Nr) |
80 |
integer irecord |
integer irecord |
81 |
integer myThid |
integer myThid |
82 |
|
|
83 |
|
#ifdef ALLOW_CTRL |
84 |
|
|
85 |
C Functions |
C Functions |
86 |
integer ILNBLNK |
integer ILNBLNK |
87 |
integer MDS_RECLEN |
integer MDS_RECLEN |
106 |
Real*8 global(Nx,Ny) |
Real*8 global(Nx,Ny) |
107 |
c _RL local(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
c _RL local(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
108 |
cph-usesingle) |
cph-usesingle) |
109 |
|
CMM( |
110 |
|
integer pIL |
111 |
|
CMM) |
112 |
|
|
113 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
114 |
|
|
131 |
globalFile = .FALSE. |
globalFile = .FALSE. |
132 |
fileIsOpen = .FALSE. |
fileIsOpen = .FALSE. |
133 |
IL=ILNBLNK( fName ) |
IL=ILNBLNK( fName ) |
134 |
|
CMM( |
135 |
|
pIL = ILNBLNK( mdsioLocalDir ) |
136 |
|
CMM) |
137 |
|
CMM( |
138 |
|
C Assign special directory |
139 |
|
if ( pIL.NE.0 ) then |
140 |
|
write(fName,'(2a)') mdsioLocalDir(1:pIL), fName(1:IL) |
141 |
|
endif |
142 |
|
CMM) |
143 |
|
|
144 |
C Assign a free unit number as the I/O channel for this routine |
C Assign a free unit number as the I/O channel for this routine |
145 |
call MDSFINDUNIT( dUnit, mythid ) |
call MDSFINDUNIT( dUnit, mythid ) |
412 |
|
|
413 |
_END_MASTER( myThid ) |
_END_MASTER( myThid ) |
414 |
|
|
415 |
|
#endif /* ALLOW_CTRL */ |
416 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
417 |
return |
return |
418 |
end |
end |
484 |
integer irecord |
integer irecord |
485 |
integer myIter |
integer myIter |
486 |
integer myThid |
integer myThid |
487 |
|
|
488 |
|
#ifdef ALLOW_CTRL |
489 |
|
|
490 |
C Functions |
C Functions |
491 |
integer ILNBLNK |
integer ILNBLNK |
492 |
integer MDS_RECLEN |
integer MDS_RECLEN |
503 |
cph-usesingle( |
cph-usesingle( |
504 |
#ifdef ALLOW_USE_MPI |
#ifdef ALLOW_USE_MPI |
505 |
integer ii,jj |
integer ii,jj |
506 |
integer x_size,y_size,iG_IO,jG_IO,npe |
c integer iG_IO,jG_IO,npe |
507 |
|
integer x_size,y_size |
508 |
PARAMETER ( x_size = Nx ) |
PARAMETER ( x_size = Nx ) |
509 |
PARAMETER ( y_size = Ny ) |
PARAMETER ( y_size = Ny ) |
510 |
Real*4 xy_buffer_r4(x_size,y_size) |
Real*4 xy_buffer_r4(x_size,y_size) |
512 |
Real*8 global(Nx,Ny) |
Real*8 global(Nx,Ny) |
513 |
#endif |
#endif |
514 |
cph-usesingle) |
cph-usesingle) |
515 |
|
CMM( |
516 |
|
integer pIL |
517 |
|
CMM) |
518 |
|
|
519 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
520 |
|
|
536 |
C Assume nothing |
C Assume nothing |
537 |
fileIsOpen=.FALSE. |
fileIsOpen=.FALSE. |
538 |
IL=ILNBLNK( fName ) |
IL=ILNBLNK( fName ) |
539 |
|
CMM( |
540 |
|
pIL = ILNBLNK( mdsioLocalDir ) |
541 |
|
CMM) |
542 |
|
CMM( |
543 |
|
C Assign special directory |
544 |
|
if ( pIL.NE.0 ) then |
545 |
|
write(fName,'(2a)') mdsioLocalDir(1:pIL), fName(1:IL) |
546 |
|
endif |
547 |
|
CMM) |
548 |
|
|
549 |
C Assign a free unit number as the I/O channel for this routine |
C Assign a free unit number as the I/O channel for this routine |
550 |
call MDSFINDUNIT( dUnit, mythid ) |
call MDSFINDUNIT( dUnit, mythid ) |
766 |
#endif /* ALLOW_USE_MPI */ |
#endif /* ALLOW_USE_MPI */ |
767 |
cph-usesingle) |
cph-usesingle) |
768 |
|
|
769 |
|
#endif /* ALLOW_CTRL */ |
770 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
771 |
return |
return |
772 |
end |
end |
825 |
_RL arr_gl(sNx,nSx,nPx,sNy,nSy,nPy,nLocz) |
_RL arr_gl(sNx,nSx,nPx,sNy,nSy,nPy,nLocz) |
826 |
integer irecord |
integer irecord |
827 |
integer myThid |
integer myThid |
828 |
|
|
829 |
|
#ifdef ALLOW_CTRL |
830 |
|
|
831 |
C Functions |
C Functions |
832 |
integer ILNBLNK |
integer ILNBLNK |
833 |
integer MDS_RECLEN |
integer MDS_RECLEN |
852 |
Real*8 global(Nx,Ny) |
Real*8 global(Nx,Ny) |
853 |
c _RL local(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
c _RL local(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
854 |
cph-usesingle) |
cph-usesingle) |
855 |
|
CMM( |
856 |
|
integer pIL |
857 |
|
CMM) |
858 |
|
|
859 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
860 |
|
|
877 |
globalFile = .FALSE. |
globalFile = .FALSE. |
878 |
fileIsOpen = .FALSE. |
fileIsOpen = .FALSE. |
879 |
IL=ILNBLNK( fName ) |
IL=ILNBLNK( fName ) |
880 |
|
CMM( |
881 |
|
pIL = ILNBLNK( mdsioLocalDir ) |
882 |
|
CMM) |
883 |
|
CMM( |
884 |
|
C Assign special directory |
885 |
|
if ( pIL.NE.0 ) then |
886 |
|
write(fName,'(2a)') mdsioLocalDir(1:pIL), fName(1:IL) |
887 |
|
endif |
888 |
|
CMM) |
889 |
|
|
890 |
C Assign a free unit number as the I/O channel for this routine |
C Assign a free unit number as the I/O channel for this routine |
891 |
call MDSFINDUNIT( dUnit, mythid ) |
call MDSFINDUNIT( dUnit, mythid ) |
1158 |
|
|
1159 |
_END_MASTER( myThid ) |
_END_MASTER( myThid ) |
1160 |
|
|
1161 |
|
#endif /* ALLOW_CTRL */ |
1162 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
1163 |
return |
return |
1164 |
end |
end |
1231 |
integer irecord |
integer irecord |
1232 |
integer myIter |
integer myIter |
1233 |
integer myThid |
integer myThid |
1234 |
|
|
1235 |
|
#ifdef ALLOW_CTRL |
1236 |
|
|
1237 |
C Functions |
C Functions |
1238 |
integer ILNBLNK |
integer ILNBLNK |
1239 |
integer MDS_RECLEN |
integer MDS_RECLEN |
1250 |
cph-usesingle( |
cph-usesingle( |
1251 |
#ifdef ALLOW_USE_MPI |
#ifdef ALLOW_USE_MPI |
1252 |
integer ii,jj |
integer ii,jj |
1253 |
integer x_size,y_size,iG_IO,jG_IO,npe |
c integer iG_IO,jG_IO,npe |
1254 |
|
integer x_size,y_size |
1255 |
PARAMETER ( x_size = Nx ) |
PARAMETER ( x_size = Nx ) |
1256 |
PARAMETER ( y_size = Ny ) |
PARAMETER ( y_size = Ny ) |
1257 |
Real*4 xy_buffer_r4(x_size,y_size) |
Real*4 xy_buffer_r4(x_size,y_size) |
1259 |
Real*8 global(Nx,Ny) |
Real*8 global(Nx,Ny) |
1260 |
#endif |
#endif |
1261 |
cph-usesingle) |
cph-usesingle) |
1262 |
|
CMM( |
1263 |
|
integer pIL |
1264 |
|
CMM) |
1265 |
|
|
1266 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
1267 |
|
|
1283 |
C Assume nothing |
C Assume nothing |
1284 |
fileIsOpen=.FALSE. |
fileIsOpen=.FALSE. |
1285 |
IL=ILNBLNK( fName ) |
IL=ILNBLNK( fName ) |
1286 |
|
CMM( |
1287 |
|
pIL = ILNBLNK( mdsioLocalDir ) |
1288 |
|
CMM) |
1289 |
|
CMM( |
1290 |
|
C Assign special directory |
1291 |
|
if ( pIL.NE.0 ) then |
1292 |
|
write(fName,'(2a)') mdsioLocalDir(1:pIL), fName(1:IL) |
1293 |
|
endif |
1294 |
|
CMM) |
1295 |
|
|
1296 |
C Assign a free unit number as the I/O channel for this routine |
C Assign a free unit number as the I/O channel for this routine |
1297 |
call MDSFINDUNIT( dUnit, mythid ) |
call MDSFINDUNIT( dUnit, mythid ) |
1512 |
endif |
endif |
1513 |
#endif /* ALLOW_USE_MPI */ |
#endif /* ALLOW_USE_MPI */ |
1514 |
|
|
1515 |
|
#endif /* ALLOW_CTRL */ |
1516 |
C ------------------------------------------------------------------ |
C ------------------------------------------------------------------ |
1517 |
return |
return |
1518 |
end |
end |