14 |
#include "SIZE.h" |
#include "SIZE.h" |
15 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
16 |
#include "PARAMS.h" |
#include "PARAMS.h" |
17 |
|
#include "SEAICE_PARAMS.h" |
18 |
|
#ifdef INCLUDE_EXTERNAL_FORCING_PACKAGE |
19 |
|
LOGICAL EXFwindOnBgrid |
20 |
|
COMMON /EXF_PARM_L/ EXFwindOnBgrid |
21 |
|
#endif |
22 |
|
|
23 |
C === Routine arguments === |
C === Routine arguments === |
24 |
C myThid - Number of this instance of SEAICE_CHECK |
C myThid - Number of this instance of SEAICE_CHECK |
44 |
& SQUEEZE_RIGHT , myThid ) |
& SQUEEZE_RIGHT , myThid ) |
45 |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
46 |
ENDIF |
ENDIF |
47 |
#endif SEAICE_ALLOW_DYNAMICS |
#endif |
48 |
|
|
49 |
C-- SEAICE_EXTERNAL_FORCING |
C-- SEAICE_EXTERNAL_FORCING |
50 |
C At present this option is hardwired for pkg/exf. |
C At present this option is hardwired for pkg/exf. |
55 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
56 |
& SQUEEZE_RIGHT , myThid ) |
& SQUEEZE_RIGHT , myThid ) |
57 |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
58 |
#endif INCLUDE_EXTERNAL_FORCING_PACKAGE |
#else /* INCLUDE_EXTERNAL_FORCING_PACKAGE */ |
59 |
#ifndef ALLOW_BULKFORMULAE |
#ifndef ALLOW_ATM_TEMP |
60 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |
61 |
& 'need to define ALLOW_BULKFORMULAE' |
& 'need to define pkg/exf ALLOW_ATM_TEMP' |
62 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
63 |
& SQUEEZE_RIGHT , myThid ) |
& SQUEEZE_RIGHT , myThid ) |
64 |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
65 |
#endif ALLOW_BULKFORMULAE |
#endif |
66 |
#ifndef ALLOW_ATM_TEMP |
#ifndef ALLOW_ATM_WIND |
67 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |
68 |
& 'need to define ALLOW_ATM_TEMP' |
& 'need to define pkg/exf ALLOW_ATM_WIND' |
69 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
70 |
& SQUEEZE_RIGHT , myThid ) |
& SQUEEZE_RIGHT , myThid ) |
71 |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
72 |
#endif ALLOW_ATM_TEMP |
#endif |
73 |
#ifndef ALLOW_ATM_WIND |
#ifndef ALLOW_DOWNWARD_RADIATION |
74 |
|
WRITE(msgBuf,'(A)') |
75 |
|
& 'need to define pkg/exf ALLOW_DOWNWARD_RADIATION' |
76 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
77 |
|
& SQUEEZE_RIGHT , myThid ) |
78 |
|
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
79 |
|
#endif |
80 |
|
#if !defined(EXF_READ_EVAP) && !defined(ALLOW_BULKFORMULAE) |
81 |
|
WRITE(msgBuf,'(A)') |
82 |
|
& 'need to set EXF_READ_EVAP or ALLOW_BULKFORMULAE in pkg/exf ' |
83 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
84 |
|
& SQUEEZE_RIGHT , myThid ) |
85 |
|
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
86 |
|
#endif |
87 |
|
IF(.NOT.SEAICEwindOnCgrid .AND. .NOT.EXFwindOnBgrid) THEN |
88 |
|
WRITE(msgBuf,'(A)') |
89 |
|
& 'please set either SEAICEwindOnCgrid or EXFwindOnBgrid ' |
90 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
91 |
|
& SQUEEZE_RIGHT , myThid ) |
92 |
|
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
93 |
|
ENDIF |
94 |
|
IF(SEAICEwindOnCgrid .AND. EXFwindOnBgrid) THEN |
95 |
|
WRITE(msgBuf,'(A)') |
96 |
|
& 'please unset either SEAICEwindOnCgrid or EXFwindOnBgrid ' |
97 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
98 |
|
& SQUEEZE_RIGHT , myThid ) |
99 |
|
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
100 |
|
ENDIF |
101 |
|
#endif /* INCLUDE_EXTERNAL_FORCING_PACKAGE */ |
102 |
|
#endif /* SEAICE_EXTERNAL_FORCING */ |
103 |
|
|
104 |
|
C-- SEAICE_EXTERNAL_FLUXES |
105 |
|
C At present this option is hardwired for pkg/exf. |
106 |
|
#ifdef SEAICE_EXTERNAL_FLUXES |
107 |
|
#ifndef INCLUDE_EXTERNAL_FORCING_PACKAGE |
108 |
|
WRITE(msgBuf,'(A)') |
109 |
|
& 'need to define INCLUDE_EXTERNAL_FORCING_PACKAGE' |
110 |
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
111 |
|
& SQUEEZE_RIGHT , myThid ) |
112 |
|
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
113 |
|
#else /* INCLUDE_EXTERNAL_FORCING_PACKAGE */ |
114 |
|
IF(.NOT.SEAICEwindOnCgrid .AND. .NOT.EXFwindOnBgrid) THEN |
115 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |
116 |
& 'need to define ALLOW_ATM_WIND' |
& 'please set either SEAICEwindOnCgrid or EXFwindOnBgrid ' |
117 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
118 |
& SQUEEZE_RIGHT , myThid ) |
& SQUEEZE_RIGHT , myThid ) |
119 |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
120 |
#endif ALLOW_ATM_WIND |
ENDIF |
121 |
#ifndef ALLOW_RUNOFF |
IF(SEAICEwindOnCgrid .AND. EXFwindOnBgrid) THEN |
122 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |
123 |
& 'need to define ALLOW_RUNOFF' |
& 'please unset either SEAICEwindOnCgrid or EXFwindOnBgrid ' |
124 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
125 |
& SQUEEZE_RIGHT , myThid ) |
& SQUEEZE_RIGHT , myThid ) |
126 |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
STOP 'ABNORMAL END: S/R SEAICE_CHECK' |
127 |
#endif ALLOW_RUNOFF |
ENDIF |
128 |
#endif SEAICE_EXTERNAL_FORCING |
#endif /* INCLUDE_EXTERNAL_FORCING_PACKAGE */ |
129 |
|
#endif /* SEAICE_EXTERNAL_FLUXES */ |
130 |
|
|
131 |
#endif ALLOW_SEAICE |
#endif /* ALLOW_SEAICE */ |
132 |
|
|
133 |
return |
return |
134 |
end |
end |