/[MITgcm]/MITgcm/pkg/exf/exf_check.F
ViewVC logotype

Annotation of /MITgcm/pkg/exf/exf_check.F

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


Revision 1.7 - (hide annotations) (download)
Wed Jun 27 21:38:09 2007 UTC (17 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint59e, checkpoint59g, checkpoint59f, checkpoint59m, checkpoint59l, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j
Changes since 1.6: +2 -2 lines
Small fix for A/C-grid check.

1 heimbach 1.7 C $Header: /u/gcmpack/MITgcm/pkg/exf/exf_check.F,v 1.6 2007/05/14 19:34:57 jmc Exp $
2 jmc 1.4 C $Name: $
3 heimbach 1.1
4     #include "EXF_OPTIONS.h"
5    
6     subroutine exf_check( mythid )
7    
8     c ==================================================================
9     c SUBROUTINE exf_check
10     c ==================================================================
11     c
12     implicit none
13    
14     c == global variables ==
15    
16     #include "EEPARAMS.h"
17     #include "SIZE.h"
18     #include "PARAMS.h"
19 jmc 1.6 c#include "FFIELDS.h"
20     c#include "GRID.h"
21 heimbach 1.1
22 jmc 1.4 #include "EXF_PARAM.h"
23     #include "EXF_CONSTANTS.h"
24 jmc 1.6 c#include "EXF_FIELDS.h"
25 heimbach 1.1 c == routine arguments ==
26    
27     c mythid - thread number for this instance of the routine.
28    
29     integer mythid
30    
31     c == local variables ==
32    
33     c == end of interface ==
34    
35     c check for consistency
36     if (.NOT.
37     & (exf_iprec .EQ. 32 .OR. exf_iprec .EQ. 64)
38     & ) then
39     stop 'stop in exf_readparms: value of exf_iprec not allowed'
40     else if (.NOT.
41     & (exf_yftype .EQ. 'RS' .OR.
42     & exf_yftype .EQ. 'RL')
43     & ) then
44     stop 'stop in exf_readparms: value of exf_yftype not allowed'
45     end if
46    
47     if ( useCubedSphereExchange ) then
48     cph if ( uvecfile .NE. ' ' .and. vvecfile .NE. ' ' ) then
49     c some restrictions that can be relaxed later on
50     cph if ( uvecstartdate .ne. vvecstartdate .or.
51     cph & uvecperiod .ne. vvecperiod ) then
52     cph print*,'For useCubedSphereExchange, S/R exf_set_uv.F'
53     cph print*,'assumes that the u and v wind or wind stress'
54     cph print*,'files have the same startdate and period.'
55     cph stop
56     cph endif
57     cph endif
58     endif
59    
60 jmc 1.6 #if ( defined (ALLOW_BULKFORMULAE) && defined (ALLOW_ATM_WIND) )
61     IF ( ustressfile .NE. ' ' .OR. ustressfile .NE. ' ' ) THEN
62     STOP
63     & 'S/R EXF_CHECK: use u,v_wind components but not wind-stress'
64     ENDIF
65     #endif
66     #ifndef ALLOW_ATM_WIND
67     IF ( uwindfile .NE. ' ' .OR. vwindfile .NE. ' ' ) THEN
68     STOP
69     & 'S/R EXF_CHECK: read-in wind-stress but not u,v_wind components'
70     ENDIF
71     #endif
72    
73 dimitri 1.3 #ifdef USE_EXF_INTERPOLATION
74 jmc 1.6 if ( climsst_nlat .GT. MAX_LAT_INC )
75     & stop 'stopped in exf_readparms: climsst_nlat > MAX_LAT_INC'
76     if ( climsss_nlat .GT. MAX_LAT_INC )
77     & stop 'stopped in exf_readparms: climsss_nlat > MAX_LAT_INC'
78 dimitri 1.3 if ( usingCartesianGrid ) then
79     print*,'USE_EXF_INTERPOLATION assumes latitude/longitude'
80     print*,'input and output coordinates. Trivial to extend to'
81     print*,'cartesian coordinates, but has not yet been done.'
82     stop
83     endif
84 jmc 1.6 IF ( readStressOnAgrid.OR.readStressOnCgrid ) THEN
85     STOP 'wind-stress position defined by Long/Lat'
86     ENDIF
87     #else
88 heimbach 1.7 IF ( ustressfile .NE. ' ' .OR. vstressfile .NE. ' ' ) THEN
89 jmc 1.6 IF ( (readStressOnAgrid.AND.readStressOnCgrid) .OR.
90     & .NOT.(readStressOnAgrid.OR.readStressOnCgrid) ) THEN
91     STOP
92     & 'S/R EXF_CHECK: Select 1 wind-stress position: A or C-grid'
93     ENDIF
94     ELSE
95     IF ( readStressOnAgrid .OR. readStressOnCgrid ) THEN
96     STOP 'S/R EXF_CHECK: wind-stress position irrelevant'
97     ENDIF
98     ENDIF
99 dimitri 1.3 #endif
100    
101 heimbach 1.2 #ifdef ALLOW_CLIMTEMP_RELAXATION
102     STOP 'ALLOW_CLIMTEMP_RELAXATION no longer supported. Use pkg/rbcs'
103     #endif
104 heimbach 1.1
105    
106 heimbach 1.2 #ifdef ALLOW_CLIMSALT_RELAXATION
107     STOP 'ALLOW_CLIMSALT_RELAXATION no longer supported. Use pkg/rbcs'
108     #endif
109    
110 jmc 1.6 RETURN
111     END

  ViewVC Help
Powered by ViewVC 1.1.22