/[MITgcm]/MITgcm/pkg/ctrl/ctrl_set_globfld_xyz.F
ViewVC logotype

Contents of /MITgcm/pkg/ctrl/ctrl_set_globfld_xyz.F

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


Revision 1.4 - (show annotations) (download)
Tue Jun 24 16:07:07 2003 UTC (20 years, 11 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint51l_post, checkpoint51, checkpoint51f_post, checkpoint51d_post, checkpoint51j_post, checkpoint51l_pre, checkpoint51b_pre, checkpoint51h_pre, branchpoint-genmake2, checkpoint51i_post, checkpoint51b_post, checkpoint51c_post, checkpoint51i_pre, checkpoint51e_post, checkpoint51f_pre, checkpoint51g_post, checkpoint51m_post, checkpoint51a_post
Branch point for: branch-genmake2, tg2-branch
Changes since 1.3: +0 -4 lines
Merging for c51 vs. e34

1 #include "CTRL_CPPOPTIONS.h"
2
3
4 subroutine ctrl_set_globfld_xyz(
5 I fname, ivartype, mythid )
6
7 c ==================================================================
8 c SUBROUTINE ctrl_set_globfld_xyz
9 c ==================================================================
10 c
11 c o initialise field
12 c
13 c started: heimbach@mit.edu, 16-Aug-2001
14 c
15 c ==================================================================
16
17 implicit none
18
19 c == global variables ==
20
21 #include "EEPARAMS.h"
22 #include "SIZE.h"
23 #include "PARAMS.h"
24 #include "GRID.h"
25
26 #include "ctrl.h"
27 #include "cost.h"
28
29 #ifdef ALLOW_ECCO_OPTIMIZATION
30 #include "optim.h"
31 #endif
32
33 c == routine arguments ==
34
35 character*( 80) fname
36 integer ivartype
37 integer mythid
38
39 c == local variables ==
40
41 #ifndef ALLOW_ECCO_OPTIMIZATION
42 integer optimcycle
43 #endif
44
45 integer bi,bj
46 integer ip,jp
47 integer i,j,k
48 integer itlo,ithi
49 integer jtlo,jthi
50 integer jmin,jmax
51 integer imin,imax
52 integer irec
53
54 _RL globfld3d( snx,nsx,npx,sny,nsy,npy,nr )
55
56 c == external ==
57
58 c == end of interface ==
59
60 jtlo = 1
61 jthi = nsy
62 itlo = 1
63 ithi = nsx
64 jmin = 1
65 jmax = sny
66 imin = 1
67 imax = snx
68
69 c Initialise temporary file
70 do k = 1,nr
71 do jp = 1,nPy
72 do bj = jtlo,jthi
73 do j = jmin,jmax
74 do ip = 1,nPx
75 do bi = itlo,ithi
76 do i = imin,imax
77 globfld3d(i,bi,ip,j,bj,jp,k) = 0. _d 0
78 enddo
79 enddo
80 enddo
81 enddo
82 enddo
83 enddo
84 enddo
85
86 #ifndef ALLOW_ECCO_OPTIMIZATION
87 optimcycle = 0
88 #endif
89
90 c-- Only the master thread will do I/O.
91 _BEGIN_MASTER( mythid )
92
93 do irec = 1, ncvarrecs(ivartype)
94 call MDSWRITEFIELD_3D_GL( fname, ctrlprec, 'RL',
95 & Nr, globfld3d,
96 & irec, optimcycle, mythid)
97 enddo
98
99 _END_MASTER( mythid )
100
101 end

  ViewVC Help
Powered by ViewVC 1.1.22