/[MITgcm]/MITgcm/pkg/mypackage/mypackage_check.F
ViewVC logotype

Annotation of /MITgcm/pkg/mypackage/mypackage_check.F

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


Revision 1.2 - (hide annotations) (download)
Mon Aug 7 21:13:52 2006 UTC (17 years, 9 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint58u_post, checkpoint58w_post, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58q_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58o_post, checkpoint58y_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post
Changes since 1.1: +14 -10 lines
cleanup the protex bits -- make them consistently applied

1 edhill 1.2 C $Header: /u/gcmpack/MITgcm/pkg/mypackage/mypackage_check.F,v 1.1 2006/06/28 21:26:21 heimbach Exp $
2 heimbach 1.1 C $Name: $
3    
4     #include "MYPACKAGE_OPTIONS.h"
5    
6 edhill 1.2 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP 0
8     C !ROUTINE: MYPACKAGE_CHECK
9    
10     C !INTERFACE:
11 heimbach 1.1 SUBROUTINE MYPACKAGE_CHECK( myThid )
12 edhill 1.2
13     C !DESCRIPTION:
14     C Check dependances with other packages
15    
16     C !USES:
17 heimbach 1.1 IMPLICIT NONE
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     #include "MYPACKAGE.h"
22    
23 edhill 1.2 C !INPUT PARAMETERS:
24 heimbach 1.1 C myThid - Number of this instances
25     INTEGER myThid
26 edhill 1.2 CEOP
27 heimbach 1.1
28 edhill 1.2 C !LOCAL VARIABLES:
29 heimbach 1.1 C msgBuf - Informational/error meesage buffer
30     CHARACTER*(MAX_LEN_MBUF) msgBuf
31    
32    
33     #ifdef ALLOW_MYPACKAGE
34    
35     WRITE(msgBuf,'(A)') 'MYPACKAGE_CHECK: #define MYPACKAGE'
36     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
37     & SQUEEZE_RIGHT , 1)
38    
39     C-- Check parameters:
40    
41     _BEGIN_MASTER(myThid)
42    
43     C- Put stops here if some flags are wrongly chosen.
44     C- For example, require this package to use tempStepping
45     IF (.NOT.tempStepping) THEN
46     WRITE(msgBuf,'(A)') 'An example requirement is:'
47     CALL PRINT_ERROR( msgBuf , 1)
48     WRITE(msgBuf,'(A)') 'mypackage needs tempStepping=.true.'
49     CALL PRINT_ERROR( msgBuf , 1)
50     STOP 'ABNORMAL END: S/R MYPACKAGE_CHECK'
51     ENDIF
52    
53     _END_MASTER(myThid)
54    
55     #endif /* ALLOW_MYPACKAGE */
56     RETURN
57     END

  ViewVC Help
Powered by ViewVC 1.1.22