54 |
C | Controlling routine for doing actual I/O operations. | |
C | Controlling routine for doing actual I/O operations. | |
55 |
C | Close the file referred to by handle fielHandle. | |
C | Close the file referred to by handle fielHandle. | |
56 |
C \==========================================================/ |
C \==========================================================/ |
57 |
|
IMPLICIT NONE |
58 |
|
|
59 |
C == Global variables == |
C == Global variables == |
60 |
#include "SIZE.h" |
#include "SIZE.h" |
118 |
C | and/or have different unit numbers per thread. This is | |
C | and/or have different unit numbers per thread. This is | |
119 |
C | not done here. | |
C | not done here. | |
120 |
C \==========================================================/ |
C \==========================================================/ |
121 |
|
IMPLICIT NONE |
122 |
|
|
123 |
C == Global variables == |
C == Global variables == |
124 |
#include "SIZE.h" |
#include "SIZE.h" |
156 |
C | Routine returns a handle to the caller that can be used | |
C | Routine returns a handle to the caller that can be used | |
157 |
C | in subsequent read and write operations. | |
C | in subsequent read and write operations. | |
158 |
C \==========================================================/ |
C \==========================================================/ |
159 |
|
IMPLICIT NONE |
160 |
|
|
161 |
C == Global variables == |
C == Global variables == |
162 |
#include "SIZE.h" |
#include "SIZE.h" |
219 |
metaDataStatus(fileHandle,myThid) = metaDataWritten |
metaDataStatus(fileHandle,myThid) = metaDataWritten |
220 |
IF ( fNamMeta .NE. ' ' ) THEN |
IF ( fNamMeta .NE. ' ' ) THEN |
221 |
IF ( aMode .EQ. accessModeRW ) THEN |
IF ( aMode .EQ. accessModeRW ) THEN |
222 |
OPEN(UNIT=mUnit,NAME=fNamMeta(i2Lo:i2Hi), |
OPEN(UNIT=mUnit,FILE=fNamMeta(i2Lo:i2Hi), |
223 |
& STATUS='UNKNOWN',ERR=899) |
& STATUS='UNKNOWN',ERR=899) |
224 |
CLOSE(mUnit,ERR=899) |
CLOSE(mUnit,ERR=899) |
225 |
OPEN(UNIT=mUnit,NAME=fNamMeta(i2Lo:i2Hi), |
OPEN(UNIT=mUnit,FILE=fNamMeta(i2Lo:i2Hi), |
226 |
& STATUS='UNKNOWN',ERR=899) |
& STATUS='UNKNOWN',ERR=899) |
227 |
metaDataStatus(fileHandle,myThid) = metaDataNotWritten |
metaDataStatus(fileHandle,myThid) = metaDataNotWritten |
228 |
nameOfMFile(fileHandle,myThid) = fNamMeta(i2Lo:i2Hi) |
nameOfMFile(fileHandle,myThid) = fNamMeta(i2Lo:i2Hi) |
231 |
|
|
232 |
C-- Open data file |
C-- Open data file |
233 |
nameOfDFile(fileHandle,myThid) = fNam(i1Lo:i1Hi) |
nameOfDFile(fileHandle,myThid) = fNam(i1Lo:i1Hi) |
234 |
OPEN(UNIT=dUnit,NAME=fNam(i1Lo:i1Hi),STATUS='UNKNOWN', ERR=799, |
OPEN(UNIT=dUnit,FILE=fNam(i1Lo:i1Hi),STATUS='UNKNOWN', ERR=799, |
235 |
& FORM='UNFORMATTED',ACCESS='SEQUENTIAL') |
& FORM='UNFORMATTED',ACCESS='SEQUENTIAL') |
236 |
|
|
237 |
|
|
291 |
C | using regular C I/O primitives. For now we use plain | |
C | using regular C I/O primitives. For now we use plain | |
292 |
C | F77. | |
C | F77. | |
293 |
C \==========================================================/ |
C \==========================================================/ |
294 |
|
IMPLICIT NONE |
295 |
|
|
296 |
C == Global variables == |
C == Global variables == |
297 |
#include "SIZE.h" |
#include "SIZE.h" |
375 |
C | using regular C I/O primitives. For now we use plain | |
C | using regular C I/O primitives. For now we use plain | |
376 |
C | F77. | |
C | F77. | |
377 |
C \==========================================================/ |
C \==========================================================/ |
378 |
|
IMPLICIT NONE |
379 |
|
|
380 |
C == Global variables == |
C == Global variables == |
381 |
#include "SIZE.h" |
#include "SIZE.h" |
452 |
C | SUBROUTINE DFILE_SET_RO | |
C | SUBROUTINE DFILE_SET_RO | |
453 |
C | o Sets new connections to be read-only. | |
C | o Sets new connections to be read-only. | |
454 |
C \==========================================================/ |
C \==========================================================/ |
455 |
|
IMPLICIT NONE |
456 |
|
|
457 |
C == Global variables == |
C == Global variables == |
458 |
#include "SIZE.h" |
#include "SIZE.h" |
469 |
C | SUBROUTINE DFILE_SET_RW | |
C | SUBROUTINE DFILE_SET_RW | |
470 |
C | o Sets new connections to be read-write | |
C | o Sets new connections to be read-write | |
471 |
C \==========================================================/ |
C \==========================================================/ |
472 |
|
IMPLICIT NONE |
473 |
|
|
474 |
C == Global variables == |
C == Global variables == |
475 |
#include "SIZE.h" |
#include "SIZE.h" |
486 |
C | SUBROUTINE DFILE_SET_STOP_ON_ERROR | |
C | SUBROUTINE DFILE_SET_STOP_ON_ERROR | |
487 |
C | o Sets new connections to STOP on error | |
C | o Sets new connections to STOP on error | |
488 |
C \==========================================================/ |
C \==========================================================/ |
489 |
|
IMPLICIT NONE |
490 |
|
|
491 |
C == Global variables == |
C == Global variables == |
492 |
#include "SIZE.h" |
#include "SIZE.h" |
503 |
C | SUBROUTINE DFILE_SET_CONT_ON_ERROR | |
C | SUBROUTINE DFILE_SET_CONT_ON_ERROR | |
504 |
C | o Sets new connections to continue on error | |
C | o Sets new connections to continue on error | |
505 |
C \==========================================================/ |
C \==========================================================/ |
506 |
|
IMPLICIT NONE |
507 |
|
|
508 |
C == Global variables == |
C == Global variables == |
509 |
#include "SIZE.h" |
#include "SIZE.h" |
532 |
C | is information indicating the subregion of the global | |
C | is information indicating the subregion of the global | |
533 |
C | dataset being written out. | |
C | dataset being written out. | |
534 |
C \==========================================================/ |
C \==========================================================/ |
535 |
|
IMPLICIT NONE |
536 |
|
|
537 |
C == Global variables == |
C == Global variables == |
538 |
#include "SIZE.h" |
#include "SIZE.h" |
665 |
C | is information indicating the subregion of the global | |
C | is information indicating the subregion of the global | |
666 |
C | dataset being written out. | |
C | dataset being written out. | |
667 |
C \==========================================================/ |
C \==========================================================/ |
668 |
|
IMPLICIT NONE |
669 |
|
|
670 |
C == Global variables == |
C == Global variables == |
671 |
#include "SIZE.h" |
#include "SIZE.h" |