/[MITgcm]/MITgcm_contrib/rpa_layers/layers/layers_check.F
ViewVC logotype

Contents of /MITgcm_contrib/rpa_layers/layers/layers_check.F

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


Revision 1.2 - (show annotations) (download)
Wed Sep 16 18:04:49 2009 UTC (14 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -2 lines
add CVS header and name.

1 C $Header: $
2 C $Name: $
3
4 #include "LAYERS_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7
8 SUBROUTINE LAYERS_CHECK( myThid )
9
10 C Check dependances with other packages
11
12 IMPLICIT NONE
13 #include "SIZE.h"
14 #include "EEPARAMS.h"
15 #include "PARAMS.h"
16 #include "EOS.h"
17 #include "LAYERS_SIZE.h"
18 #include "LAYERS.h"
19
20 C myThid :: my Thread Id number
21 INTEGER myThid
22
23 C LOCAL VARIABLES:
24 C msgBuf :: Informational/error meesage buffer
25 CHARACTER*(MAX_LEN_MBUF) msgBuf
26
27 #ifdef ALLOW_LAYERS
28
29 _BEGIN_MASTER(myThid)
30
31 WRITE(msgBuf,'(A)') 'LAYERS_CHECK: #define LAYERS'
32 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
33 & SQUEEZE_RIGHT , 1)
34
35 C-- Print out some key parameters :
36 CALL WRITE_0D_RL( dZZ, INDEX_NONE, 'dZZ =',
37 & ' /* fine vertical grid spacing for isopycnal interp */')
38
39 CALL WRITE_0D_I( NZZ, INDEX_NONE, 'NZZ =',
40 & ' /* number of levels in the fine vertical grid */')
41
42 CALL WRITE_1D_RL(layers_G,Nlayers+1, INDEX_K,'layers_G =',
43 & ' /* boundaries of isopycnal-averaging bins */')
44
45 C-- Check parameters:
46
47
48 C For now the package will only work if density ~ temperature
49 IF ( (eosType .EQ. 'LINEAR')
50 & .AND. (sBeta .EQ. 0.0 _d 0) ) THEN
51 C we're good
52 ELSE
53 WRITE(msgBuf,'(2A)') 'eosType must be eosType=''LINEAR''',
54 & ' and sBeta must = 0.0'
55 CALL PRINT_ERROR( msgBuf , 1)
56 STOP 'ABNORMAL END: S/R LAYERS_CHECK'
57 ENDIF
58
59
60 _END_MASTER(myThid)
61
62 #endif /* ALLOW_MYPACKAGE */
63
64 RETURN
65 END

  ViewVC Help
Powered by ViewVC 1.1.22