/[MITgcm]/MITgcm/pkg/layers/layers_check.F
ViewVC logotype

Contents of /MITgcm/pkg/layers/layers_check.F

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


Revision 1.3 - (show annotations) (download)
Mon Dec 28 02:33:49 2009 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62b, checkpoint62a
Changes since 1.2: +6 -7 lines
fix typo (after #endif)

1 C $Header: /u/gcmpack/MITgcm/pkg/layers/layers_check.F,v 1.2 2009/09/20 20:54:47 rpa Exp $
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 message 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_I( NZZ, INDEX_NONE, 'NZZ =',
37 & ' /* number of levels in the fine vertical grid */')
38
39 CALL WRITE_1D_RL( dZZf, NZZ, INDEX_K, 'dZZf =',
40 & ' /* fine vertical grid spacing for isopycnal interp */')
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 _END_MASTER(myThid)
60
61 #endif /* ALLOW_LAYERS */
62
63 RETURN
64 END

  ViewVC Help
Powered by ViewVC 1.1.22