1 |
C $Header$ |
C $Header$ |
2 |
|
|
3 |
#include "CPP_OPTIONS.h" |
#include "MDSIO_OPTIONS.h" |
4 |
|
|
5 |
C The five "public" routines supplied here are: |
C The five "public" routines supplied here are: |
6 |
C |
C |
26 |
C |
C |
27 |
C To be modified to work with MITgcmuv message routines. |
C To be modified to work with MITgcmuv message routines. |
28 |
|
|
|
#undef SAFE_IO |
|
|
|
|
|
#ifdef SAFE_IO |
|
|
#define _NEW_STATUS 'new' |
|
|
#else |
|
|
#define _NEW_STATUS 'unknown' |
|
|
#endif |
|
|
|
|
|
#ifdef ALLOW_AUTODIFF_TAMC |
|
|
#define _OLD_STATUS 'unknown' |
|
|
#else |
|
|
#define _OLD_STATUS 'old' |
|
|
#endif |
|
|
|
|
29 |
C======================================================================= |
C======================================================================= |
30 |
SUBROUTINE MDSREADFIELD_3D_GL( |
SUBROUTINE MDSREADFIELD_3D_GL( |
31 |
I fName, |
I fName, |
123 |
& ' MDSREADFIELD: opening global file: ',dataFName |
& ' MDSREADFIELD: opening global file: ',dataFName |
124 |
call print_message( msgbuf, standardmessageunit, |
call print_message( msgbuf, standardmessageunit, |
125 |
& SQUEEZE_RIGHT , mythid) |
& SQUEEZE_RIGHT , mythid) |
|
stop " xx, adxx, weights and masks are not supposed to be global" |
|
126 |
endif |
endif |
127 |
|
|
128 |
C If negative check for global file with MDS name (ie. fName.data) |
C If negative check for global file with MDS name (ie. fName.data) |
135 |
call print_message( msgbuf, standardmessageunit, |
call print_message( msgbuf, standardmessageunit, |
136 |
& SQUEEZE_RIGHT , mythid) |
& SQUEEZE_RIGHT , mythid) |
137 |
globalFile = .TRUE. |
globalFile = .TRUE. |
|
stop " xx, adxx, weights and masks are not supposed to be global" |
|
138 |
endif |
endif |
139 |
endif |
endif |
140 |
C Loop over all processors |
C Loop over all processors |
567 |
& ' MDSREADFIELD: opening global file: ',dataFName |
& ' MDSREADFIELD: opening global file: ',dataFName |
568 |
call print_message( msgbuf, standardmessageunit, |
call print_message( msgbuf, standardmessageunit, |
569 |
& SQUEEZE_RIGHT , mythid) |
& SQUEEZE_RIGHT , mythid) |
|
stop " xx, adxx, weights and masks are not supposed to be global" |
|
570 |
endif |
endif |
571 |
|
|
572 |
C If negative check for global file with MDS name (ie. fName.data) |
C If negative check for global file with MDS name (ie. fName.data) |
579 |
call print_message( msgbuf, standardmessageunit, |
call print_message( msgbuf, standardmessageunit, |
580 |
& SQUEEZE_RIGHT , mythid) |
& SQUEEZE_RIGHT , mythid) |
581 |
globalFile = .TRUE. |
globalFile = .TRUE. |
|
stop " xx, adxx, weights and masks are not supposed to be global" |
|
582 |
endif |
endif |
583 |
endif |
endif |
584 |
C Loop over all processors |
C Loop over all processors |