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

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

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


Revision 1.5 - (hide annotations) (download)
Sat Dec 4 23:50:32 2010 UTC (13 years, 5 months ago) by dfer
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63b, checkpoint63c, checkpoint63, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.4: +9 -9 lines
Some extensions:
- if GM with advective form is on, its transport is included,
- a flag to choose between temperature and salt as possible binning tracers

1 dfer 1.5 C $Header: /u/gcmpack/MITgcm/pkg/layers/layers_check.F,v 1.4 2010/03/16 00:14:47 jmc Exp $
2 rpa 1.1 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 jmc 1.3 C msgBuf :: Informational/error message buffer
25 rpa 1.1 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 rpa 1.2 CALL WRITE_1D_RL( dZZf, NZZ, INDEX_K, 'dZZf =',
40     & ' /* fine vertical grid spacing for isopycnal interp */')
41    
42 rpa 1.1 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 dfer 1.5 c IF ( (eosType .EQ. 'LINEAR')
50     c & .AND. (sBeta .EQ. 0.0 _d 0) ) THEN
51 jmc 1.4 C we are good
52 dfer 1.5 c ELSE
53     c WRITE(msgBuf,'(2A)') 'eosType must be eosType=''LINEAR''',
54     c & ' and sBeta must = 0.0'
55     c CALL PRINT_ERROR( msgBuf , 1)
56     c STOP 'ABNORMAL END: S/R LAYERS_CHECK'
57     c ENDIF
58 rpa 1.1
59     _END_MASTER(myThid)
60    
61 jmc 1.3 #endif /* ALLOW_LAYERS */
62 rpa 1.1
63     RETURN
64     END

  ViewVC Help
Powered by ViewVC 1.1.22