/[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.11 - (show annotations) (download)
Wed May 16 00:03:37 2007 UTC (16 years, 11 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62c, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint63g, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint63p, checkpoint63q, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint62b, checkpoint61f, checkpoint61n, checkpoint59j, checkpoint61q, checkpoint61e, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.10: +12 -16 lines
Fix overlap and check in Matts last set of I/O changes.

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

  ViewVC Help
Powered by ViewVC 1.1.22