/[MITgcm]/MITgcm/model/src/packages_check.F
ViewVC logotype

Contents of /MITgcm/model/src/packages_check.F

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


Revision 1.15.2.1 - (show annotations) (download)
Thu Oct 2 18:10:45 2003 UTC (20 years, 7 months ago) by edhill
Branch: branch-genmake2
Changes since 1.15: +2 -1 lines
 o included PACKAGES_CONFIG.h in all files where the ALLOW_${PKG_NAME}
     defines are used
 o added comments where IF ( use${PKG_NAME} ) statements will probably
     be needed -- or need to be edited

1 C $Header: /u/u3/gcmpack/MITgcm/model/src/packages_check.F,v 1.15 2003/06/19 15:00:45 heimbach Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: PACKAGES_CHECK
9 C !INTERFACE:
10 SUBROUTINE PACKAGES_CHECK( myThid )
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE PACKAGES_CHECK
14 C | o Check runtime activated packages have been built in.
15 C *==========================================================*
16 C | All packages can be selected/deselected at build time
17 C | ( when code is compiled ) and activated/deactivated at
18 C | runtime. This routine does a quick check to trap packages
19 C | that were activated at runtime but that were not compiled
20 C | in at build time.
21 C *==========================================================*
22 C \ev
23
24 C !USES:
25 IMPLICIT NONE
26 C === Global variables ===
27 #include "SIZE.h"
28 #include "EEPARAMS.h"
29 #include "PARAMS.h"
30
31 C !INPUT/OUTPUT PARAMETERS:
32 C === Routine arguments ===
33 C myThid :: Number of this instances
34 INTEGER myThid
35
36 C !LOCAL VARIABLES:
37 C === Local variables ===
38 C msgBuf :: Informational/error meesage buffer
39 CHARACTER*(MAX_LEN_MBUF) msgBuf
40 CEOP
41
42 #ifdef ALLOW_KPP
43 IF (useKPP) CALL KPP_CHECK( myThid )
44 #else
45 IF (useKPP) CALL PACKAGES_CHECK_ERROR('KPP', myThid)
46 #endif
47
48 #ifdef ALLOW_GMREDI
49 IF (useGMRedi) CALL GMREDI_CHECK( myThid )
50 #else
51 IF (useGMRedi) CALL PACKAGES_CHECK_ERROR('GMREDI', myThid)
52 #endif
53
54 #ifdef ALLOW_OBCS
55 IF (useOBCS) CALL OBCS_CHECK( myThid )
56 #else
57 IF (useOBCS) CALL PACKAGES_CHECK_ERROR('OBCS', myThid)
58 #endif
59
60 #ifndef ALLOW_AIM
61 IF (useAIM) CALL PACKAGES_CHECK_ERROR('AIM', myThid)
62 #endif
63
64 #ifndef ALLOW_LAND
65 IF (useLand) CALL PACKAGES_CHECK_ERROR('LAND', myThid)
66 #endif
67
68 #ifndef ALLOW_PTRACERS
69 IF (usePTRACERS) CALL PACKAGES_CHECK_ERROR('PTRACERS', myThid)
70 #endif
71
72 #ifndef ALLOW_SHAP_FILT
73 IF (useSHAP_FILT) CALL PACKAGES_CHECK_ERROR('SHAP_FILT', myThid)
74 #endif
75
76 #ifndef ALLOW_ZONAL_FILT
77 IF (useZONAL_FILT) CALL PACKAGES_CHECK_ERROR('ZONAL_FILT',myThid)
78 #endif
79
80 #ifndef ALLOW_FLT
81 IF (useFLT) CALL PACKAGES_CHECK_ERROR('FLT', myThid)
82 #endif
83
84 #ifdef ALLOW_SBO
85 IF (useSBO) CALL SBO_CHECK( myThid )
86 #else
87 IF (useSBO) CALL PACKAGES_CHECK_ERROR('SBO', myThid)
88 #endif
89
90 #ifdef ALLOW_SEAICE
91 IF (useSEAICE) CALL SEAICE_CHECK( myThid )
92 #else
93 IF (useSEAICE) CALL PACKAGES_CHECK_ERROR('SEAICE', myThid)
94 #endif
95
96 #if ( defined (ALLOW_ADJOINT_RUN) || \
97 defined (ALLOW_TANGENTLINEAR_RUN) || \
98 defined (ALLOW_GRADIENT_CHECK) || \
99 defined (ALLOW_ECCO_OPTIMIZATION) )
100 CALL CTRL_CHECK( myThid )
101 CALL COST_CHECK( myThid )
102 #endif
103
104 RETURN
105 END

  ViewVC Help
Powered by ViewVC 1.1.22