forked from altMITgcm/MITgcm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbo_check.F
52 lines (40 loc) · 1.53 KB
/
sbo_check.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
C $Header: /u/gcmpack/MITgcm/pkg/sbo/sbo_check.F,v 1.6 2014/05/30 17:10:15 jmc Exp $
C $Name: $
#include "SBO_OPTIONS.h"
SUBROUTINE SBO_CHECK( myThid )
C *==========================================================*
C | SUBROUTINE SBO_CHECK |
C | o Validate basic package setup and inter-package |
C | dependencies. |
C *==========================================================*
IMPLICIT NONE
C === Global variables ===
#include "SIZE.h"
#include "EEPARAMS.h"
#include "PARAMS.h"
C === Routine arguments ===
C myThid :: my Thread Id number
INTEGER myThid
#ifdef ALLOW_SBO
C === Local variables ===
C msgBuf :: Informational/error message buffer
CHARACTER*(MAX_LEN_MBUF) msgBuf
_BEGIN_MASTER(myThid)
WRITE(msgBuf,'(A)') 'SBO_CHECK: #define ALLOW_SBO'
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
& SQUEEZE_RIGHT, myThid )
C SBO assumes spherical polar coordinates
IF ( usingCartesianGrid ) THEN
WRITE(msgBuf,'(A)') 'SBO not implemented for Cartesian Grid'
CALL PRINT_ERROR( msgBuf, myThid )
STOP 'ABNORMAL END: S/R SBO_CHECK'
ENDIF
IF ( usingCylindricalGrid ) THEN
WRITE(msgBuf,'(A)') 'SBO not implemented for Cylindrical Grid'
CALL PRINT_ERROR( msgBuf, myThid )
STOP 'ABNORMAL END: S/R SBO_CHECK'
ENDIF
_END_MASTER(myThid)
#endif /* ALLOW_SBO */
RETURN
END