1 |
C $Header: /u/gcmpack/MITgcm/pkg/grdchk/grdchk_check.F,v 1.2 2007/10/09 00:05:45 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CTRL_CPPOPTIONS.h" |
5 |
|
6 |
|
7 |
SUBROUTINE GRDCHK_CHECK( myThid ) |
8 |
|
9 |
C ================================================================== |
10 |
C SUBROUTINE grdchk_check |
11 |
C ================================================================== |
12 |
C |
13 |
C o check some gradient check parameter settings for consistency |
14 |
C |
15 |
C ================================================================== |
16 |
C SUBROUTINE grdchk_check |
17 |
C ================================================================== |
18 |
|
19 |
IMPLICIT NONE |
20 |
|
21 |
C == global variables == |
22 |
|
23 |
#include "EEPARAMS.h" |
24 |
#include "SIZE.h" |
25 |
#include "GRID.h" |
26 |
#include "ctrl.h" |
27 |
#include "grdchk.h" |
28 |
|
29 |
C == routine arguments == |
30 |
|
31 |
INTEGER myThid |
32 |
|
33 |
#ifdef ALLOW_GRDCHK |
34 |
C == local variables == |
35 |
|
36 |
C msgBuf - Informational/error message buffer |
37 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
38 |
|
39 |
C == end of interface == |
40 |
|
41 |
WRITE(msgBuf,'(A)') 'GRDCHK_CHECK: grdchk package' |
42 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
43 |
& SQUEEZE_RIGHT, myThid ) |
44 |
|
45 |
IF ( ncvarindex(grdchkvarindex) .LE. 0 ) THEN |
46 |
WRITE(msgBuf,'(A,I4)') |
47 |
& 'Control variable not enabled for grdchkvarindex = ', |
48 |
& grdchkvarindex |
49 |
CALL PRINT_ERROR( msgBuf, myThid ) |
50 |
STOP 'ABNORMAL END: S/R GRDCHK_CHECK' |
51 |
ENDIF |
52 |
|
53 |
#endif /* ALLOW_GRDCHK */ |
54 |
|
55 |
RETURN |
56 |
END |