/[MITgcm]/MITgcm/pkg/ctrl/ctrl_check.F
ViewVC logotype

Contents of /MITgcm/pkg/ctrl/ctrl_check.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Thu Oct 23 04:41:40 2003 UTC (20 years, 6 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint52l_pre, hrcube4, hrcube5, checkpoint57g_pre, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint52d_pre, checkpoint57g_post, checkpoint56b_post, checkpoint57y_post, checkpoint52j_pre, checkpoint51o_pre, checkpoint54d_post, checkpoint54e_post, checkpoint57h_post, checkpoint62c, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint52l_post, checkpoint52k_post, checkpoint59, checkpoint58, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint52, checkpoint58f_post, checkpoint52f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint54f_post, checkpoint62a, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint58y_post, checkpoint51t_post, checkpoint58t_post, checkpoint51n_post, checkpoint55i_post, checkpoint58m_post, checkpoint57l_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, checkpoint57t_post, checkpoint55c_post, checkpoint52e_pre, checkpoint57v_post, checkpoint57f_post, checkpoint52e_post, checkpoint51n_pre, checkpoint53d_post, checkpoint60, checkpoint61, checkpoint62, checkpoint57a_post, checkpoint57h_pre, checkpoint52b_pre, checkpoint54b_post, checkpoint58w_post, checkpoint52m_post, checkpoint57y_pre, checkpoint55g_post, checkpoint51q_post, checkpoint52b_post, checkpoint52c_post, checkpoint58o_post, checkpoint57c_post, checkpoint58p_post, checkpoint58q_post, checkpoint52f_pre, checkpoint55d_post, checkpoint58e_post, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint58n_post, checkpoint51r_post, checkpoint57e_post, checkpoint55b_post, checkpoint53a_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint52d_post, checkpoint53g_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint52a_pre, checkpoint62b, checkpoint58v_post, checkpoint52i_post, checkpoint52h_pre, checkpoint56a_post, checkpoint58l_post, checkpoint53f_post, checkpoint57h_done, checkpoint52j_post, checkpoint57j_post, checkpoint57f_pre, checkpoint61f, checkpoint58g_post, branch-netcdf, checkpoint58x_post, checkpoint61n, checkpoint52n_post, checkpoint53b_pre, checkpoint59j, checkpoint58h_post, checkpoint56c_post, checkpoint58j_post, checkpoint57a_pre, checkpoint55a_post, checkpoint57o_post, checkpoint51o_post, checkpoint61q, checkpoint57k_post, checkpoint53b_post, checkpoint52a_post, checkpoint57w_post, checkpoint61e, checkpoint58i_post, ecco_c52_e35, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint53d_pre, checkpoint58s_post, checkpoint55e_post, checkpoint61g, checkpoint61d, checkpoint54c_post, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint51p_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint51u_post
Branch point for: branch-nonh, netcdf-sm0, checkpoint51n_branch
Changes since 1.4: +4 -0 lines
 o added the [#include "AD_CONFIG.h"] statement to all files that need
   it for adjoint/tl #defines
 o re-worked the build logic in genmake2 to support AD_CONFIG.h
 o removed tools/genmake since it no longer works

1 C
2 C $Header: $
3 C $Name: $
4
5 #include "AD_CONFIG.h"
6 #include "CTRL_CPPOPTIONS.h"
7
8 SUBROUTINE CTRL_CHECK( myThid )
9 C /==========================================================\
10 C | SUBROUTINE CTRK_CHECK |
11 C | o Validate basic package setup and inter-package |
12 C | dependencies. |
13 C \==========================================================/
14 IMPLICIT NONE
15
16 C === Global variables ===
17 #include "SIZE.h"
18 #include "EEPARAMS.h"
19 #include "PARAMS.h"
20
21 #include "ctrl.h"
22
23 C === Routine arguments ===
24 C myThid - Number of this instance
25 INTEGER myThid
26
27 C === Local variables ===
28 C msgBuf - Informational/error meesage buffer
29 CHARACTER*(MAX_LEN_MBUF) msgBuf
30
31 WRITE(msgBuf,'(A)') 'CTRL_CHECK: ctrl package'
32 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
33 & SQUEEZE_RIGHT , 1)
34
35 C KPP needs convection turned off (will be packaged later)
36 C Can not have both atmos. state and flux field as control
37
38 #ifdef ALLOW_TANGENTLINEAR_RUN
39 if ( yadmark .NE. 'g_' ) then
40 WRITE(msgBuf,'(A)')
41 & 'yadmark very likely wrong in data.ctrl for case '
42 CALL PRINT_ERROR( msgBuf , 1)
43 WRITE(msgBuf,'(A)')
44 & 'ALLOW_TANGENTLINEAR_RUN; should be g_ '
45 CALL PRINT_ERROR( msgBuf , 1)
46 STOP 'ABNORMAL END: S/R CTRL_CHECK'
47 end if
48 #endif
49
50 #if (defined (ALLOW_HFLUX_CONTROL) && defined (ALLOW_ATEMP_CONTROL))
51 WRITE(msgBuf,'(A)')
52 & 'Cannot have both ALLOW_HFLUX_CONTROL & ALLOW_ATEMP_CONTROL'
53 CALL PRINT_ERROR( msgBuf , 1)
54 STOP 'ABNORMAL END: S/R CTRL_CHECK'
55 #endif
56
57 #if (defined (ALLOW_SFLUX_CONTROL) && defined (ALLOW_AQH_CONTROL))
58 WRITE(msgBuf,'(A)')
59 & 'Cannot have both ALLOW_SFLUX_CONTROL & ALLOW_AQH_CONTROL'
60 CALL PRINT_ERROR( msgBuf , 1)
61 STOP 'ABNORMAL END: S/R CTRL_CHECK'
62 #endif
63
64 #if (defined (ALLOW_USTRESS_CONTROL) && defined (ALLOW_UWIND_CONTROL))
65 WRITE(msgBuf,'(A)')
66 & 'Cannot have both ALLOW_USTRESS_CONTROL & ALLOW_UWIND_CONTROL'
67 CALL PRINT_ERROR( msgBuf , 1)
68 STOP 'ABNORMAL END: S/R CTRL_CHECK'
69 #endif
70
71 #if (defined (ALLOW_VSTRESS_CONTROL) && defined (ALLOW_VWIND_CONTROL))
72 WRITE(msgBuf,'(A)')
73 & 'Cannot have both ALLOW_VSTRESS_CONTROL & ALLOW_VWIND_CONTROL'
74 CALL PRINT_ERROR( msgBuf , 1)
75 STOP 'ABNORMAL END: S/R CTRL_CHECK'
76 #endif
77
78 #ifdef ALLOW_ATEMP_CONTROL
79 #ifndef ALLOW_ATM_TEMP
80 WRITE(msgBuf,'(A)')
81 & 'ALLOW_ATEMP_CONTROL used without ALLOW_ATM_TEMP'
82 CALL PRINT_ERROR( msgBuf , 1)
83 STOP 'ABNORMAL END: S/R CTRL_CHECK'
84 #endif
85 #endif
86
87 #ifdef ALLOW_AQH_CONTROL
88 #ifndef ALLOW_ATM_TEMP
89 WRITE(msgBuf,'(A)')
90 & 'ALLOW_AQH_CONTROL used without ALLOW_ATM_TEMP'
91 CALL PRINT_ERROR( msgBuf , 1)
92 STOP 'ABNORMAL END: S/R CTRL_CHECK'
93 #endif
94 #endif
95
96 #ifdef ALLOW_UWIND_CONTROL
97 #ifndef ALLOW_ATM_WIND
98 WRITE(msgBuf,'(A)')
99 & 'ALLOW_UWIND_CONTROL used without ALLOW_ATM_WIND'
100 CALL PRINT_ERROR( msgBuf , 1)
101 STOP 'ABNORMAL END: S/R CTRL_CHECK'
102 #endif
103 #endif
104
105 #ifdef ALLOW_VWIND_CONTROL
106 #ifndef ALLOW_ATM_WIND
107 WRITE(msgBuf,'(A)')
108 & 'ALLOW_VWIND_CONTROL used without ALLOW_ATM_WIND'
109 CALL PRINT_ERROR( msgBuf , 1)
110 STOP 'ABNORMAL END: S/R CTRL_CHECK'
111 #endif
112 #endif
113
114 return
115 end

  ViewVC Help
Powered by ViewVC 1.1.22