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

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

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


Revision 1.1 - (hide annotations) (download)
Wed Jun 21 19:25:06 2000 UTC (23 years, 11 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint29, checkpoint30
Two routines to configure and check depenances between packages.
The details of how this should work is still in flux.

1 adcroft 1.1 C $Header: $
2    
3     #include "CPP_OPTIONS.h"
4    
5     SUBROUTINE PACKAGE_CHECK( myThid )
6     C /==========================================================\
7     C | SUBROUTINE PACKAGE_CHECK |
8     C | o Check dependances between selected packages |
9     C |==========================================================|
10     C \==========================================================/
11     IMPLICIT NONE
12    
13     C === Global variables ===
14     #include "SIZE.h"
15     #include "EEPARAMS.h"
16     #include "PARAMS.h"
17    
18     C === Routine arguments ===
19     C myThid - Number of this instances
20     INTEGER myThid
21    
22     C === Local variables ===
23     C msgBuf - Informational/error meesage buffer
24     CHARACTER*(MAX_LEN_MBUF) msgBuf
25    
26    
27     #ifndef ALLOW_KPP
28     IF (use_KPPmixing) THEN
29     WRITE(msgBuf,'(A)') '#define ALLOW_KPP to use use_KPPmixing'
30     CALL PRINT_ERROR( msgBuf , 1)
31     STOP 'ABNORMAL END: S/R PACKAGE_CHECK'
32     ENDIF
33     #else
34     WRITE(msgBuf,'(A)') 'PACKAGE_CHECK: #define ALLOW_KPP'
35     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
36     & SQUEEZE_RIGHT , 1)
37     C KPP needs convection turned off (will be packaged later)
38     IF (use_KPPmixing) THEN
39     IF (cAdjFreq.NE.0. .OR.
40     & ivdc_kappa.NE.0.) THEN
41     WRITE(msgBuf,'(A)') 'Some form of convection has been enabled'
42     CALL PRINT_ERROR( msgBuf , 1)
43     STOP 'ABNORMAL END: S/R PACKAGE_CHECK'
44     ENDIF
45     IF (.NOT.implicitDiffusion) THEN
46     WRITE(msgBuf,'(A)') 'KPP needs implicitDiffusion to be enabled'
47     CALL PRINT_ERROR( msgBuf , 1)
48     STOP 'ABNORMAL END: S/R PACKAGE_CHECK'
49     ENDIF
50     ENDIF
51     #endif
52    
53     #ifndef ALLOW_GMREDI
54     IF (use_GMRedi) THEN
55     WRITE(msgBuf,'(A)') '#define ALLOW_GMREDI to use use_GMRedi'
56     CALL PRINT_ERROR( msgBuf , 1)
57     STOP 'ABNORMAL END: S/R PACKAGE_CHECK'
58     ENDIF
59     #else
60     WRITE(msgBuf,'(A)') 'PACKAGE_CHECK: #define GMREDI'
61     C GM/Redi needs implicit diffusion (will be packaged later)
62     IF (use_GMRedi) THEN
63     IF (.NOT.implicitDiffusion) THEN
64     WRITE(msgBuf,'(A)') 'GM/Redi needs implicitDiffusion=.true.'
65     CALL PRINT_ERROR( msgBuf , 1)
66     cTemp STOP 'ABNORMAL END: S/R PACKAGE_CHECK'
67     ENDIF
68     ENDIF
69     #endif
70    
71    
72     return
73     end

  ViewVC Help
Powered by ViewVC 1.1.22