/[MITgcm]/MITgcm/pkg/flt/flt_init_fixed.F
ViewVC logotype

Annotation of /MITgcm/pkg/flt/flt_init_fixed.F

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


Revision 1.7 - (hide annotations) (download)
Sat Feb 11 21:07:13 2017 UTC (7 years, 3 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, HEAD
Changes since 1.6: +3 -1 lines
- flt_init_varia.F: use pickupSuff if specified

- add code and test case as a first step towards completing pkg/exch2 support within pkg/flt
  - flt_init_fixed.F: if DEVEL_FLT_EXCH2 then comment out stop
  - flt_exch2.F: if DEVEL_FLT_EXCH2 then conserve ipart, jpart (grid coordinates)
  - exch2_recv_get_vec.F: if DEVEL_FLT_EXCH2 then transform ipart, jpart (grid coordinates)
  - flt_mapping.F: if DEVEL_FLT_EXCH2 then attempt to fix longitude diagnostic near date-line
  - flt_init_varia.F: if DEVEL_FLT_EXCH2 then hack initialization (for testing purposes w. LLC90)

1 gforget 1.7 C $Header: /u/gcmpack/MITgcm/pkg/flt/flt_init_fixed.F,v 1.6 2012/09/06 14:47:54 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "FLT_OPTIONS.h"
5    
6     SUBROUTINE FLT_INIT_FIXED( myThid )
7    
8     C ==================================================================
9     C SUBROUTINE FLT_INIT_FIXED
10     C ==================================================================
11 jmc 1.2 C o initializes Fixed array
12 jmc 1.1 C ==================================================================
13 jmc 1.2
14     C !USES:
15     IMPLICIT NONE
16 jmc 1.1
17     #include "SIZE.h"
18     #include "EEPARAMS.h"
19     #include "PARAMS.h"
20     #include "GRID.h"
21 jahn 1.5 #ifdef ALLOW_EXCH2
22 jmc 1.6 #include "W2_EXCH2_SIZE.h"
23 jahn 1.5 #include "W2_EXCH2_PARAMS.h"
24     #endif
25 jahn 1.4 #include "FLT_SIZE.h"
26 jmc 1.1 #include "FLT.h"
27    
28     C == routine arguments ==
29     C myThid - thread number for this instance of the routine.
30     INTEGER myThid
31    
32     C == local variables ==
33     INTEGER bi, bj
34     _RL xLo, xHi, yLo, yHi
35     CHARACTER*(MAX_LEN_MBUF) msgBuf
36    
37     C == end of interface ==
38    
39     C Set domain dependent constants:
40     xLo = -xG( 1, 1,1,1)
41     xHi = xG(sNx+1,1,1,1)
42     yLo = -yG(1, 1, 1,1)
43     yHi = yG(1,sNy+1,1,1)
44     DO bj=myByLo(myThid),myByHi(myThid)
45     DO bi=myBxLo(myThid),myBxHi(myThid)
46     xLo = MAX( xLo, -xG(1,1,bi,bj) )
47     xHi = MAX( xHi, xG(sNx+1,1,bi,bj) )
48     yLo = MAX( yLo, -yG(1,1,bi,bj) )
49     yHi = MAX( yHi, yG(1,sNy+1,bi,bj) )
50     ENDDO
51     ENDDO
52 jmc 1.3 _GLOBAL_MAX_RL( xLo, myThid )
53     _GLOBAL_MAX_RL( xHi, myThid )
54     _GLOBAL_MAX_RL( yLo, myThid )
55     _GLOBAL_MAX_RL( yHi, myThid )
56 jmc 1.1
57     _BEGIN_MASTER(myThid)
58     flt_xLo = -xLo
59     flt_xHi = xHi
60     flt_yLo = -yLo
61     flt_yHi = yHi
62     WRITE(msgBuf,'(A,2F18.8)')
63     & ' FLT_xLo,xHi=', xLo, xHi
64     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
65     & SQUEEZE_RIGHT, myThid )
66     WRITE(msgBuf,'(A,2F18.8)')
67     & ' FLT_yLo,yHi=', yLo, yHi
68     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
69     & SQUEEZE_RIGHT, myThid )
70     _END_MASTER(myThid)
71    
72 gforget 1.7 #ifndef DEVEL_FLT_EXCH2
73 jahn 1.5 #ifdef ALLOW_EXCH2
74     IF (nFacets .GT. 1) THEN
75     WRITE(msgBuf,'(2A)') 'FLT_INIT_FIXED:',
76     & ' more than 1 exch2 facet not yet supported'
77     CALL PRINT_ERROR( msgBuf, myThid )
78     STOP 'ABNORMAL END: S/R FLT_INIT_FIXED'
79     ENDIF
80     #endif
81 gforget 1.7 #endif
82 jahn 1.5
83 jmc 1.1 RETURN
84     END

  ViewVC Help
Powered by ViewVC 1.1.22