1 |
C $Header: /u/gcmpack/MITgcm_contrib/eh3/regrid/regrid/regrid_check.F,v 1.1 2006/08/10 05:00:15 edhill Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "REGRID_OPTIONS.h" |
5 |
|
6 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
7 |
CBOP 0 |
8 |
C !ROUTINE: REGRID_CHECK |
9 |
|
10 |
C !INTERFACE: |
11 |
SUBROUTINE REGRID_CHECK( myThid ) |
12 |
|
13 |
C !DESCRIPTION: |
14 |
C Check dependances with other packages |
15 |
|
16 |
C !USES: |
17 |
IMPLICIT NONE |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PARAMS.h" |
21 |
#include "REGRID_SIZE.h" |
22 |
#include "REGRID.h" |
23 |
|
24 |
C !INPUT PARAMETERS: |
25 |
C myThid - Number of this instances |
26 |
INTEGER myThid |
27 |
CEOP |
28 |
|
29 |
C !LOCAL VARIABLES: |
30 |
C msgBuf - Informational/error meesage buffer |
31 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
32 |
|
33 |
|
34 |
#ifdef ALLOW_REGRID |
35 |
|
36 |
WRITE(msgBuf,'(A)') 'REGRID_CHECK: #define REGRID' |
37 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
38 |
& SQUEEZE_RIGHT , 1) |
39 |
|
40 |
_BEGIN_MASTER(myThid) |
41 |
|
42 |
IF (.NOT. useMNC) THEN |
43 |
WRITE(msgBuf,'(A)') 'Regrid needs useMNC=.true.' |
44 |
CALL PRINT_ERROR( msgBuf , 1) |
45 |
STOP 'ABNORMAL END: S/R REGRID_CHECK' |
46 |
ENDIF |
47 |
|
48 |
_END_MASTER(myThid) |
49 |
|
50 |
#endif /* ALLOW_REGRID */ |
51 |
|
52 |
RETURN |
53 |
END |