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

Diff of /MITgcm/pkg/ctrl/ctrl_set_globfld_yz.F

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

revision 1.9 by heimbach, Fri Mar 24 22:59:39 2006 UTC revision 1.10 by heimbach, Mon May 14 23:06:13 2007 UTC
# Line 51  c     == local variables == Line 51  c     == local variables ==
51        integer imin,imax        integer imin,imax
52        integer irec,nrec_nl        integer irec,nrec_nl
53    
54        _RL     globfldyz( nsx,npx,sny,nsy,npy,nr )        _RL     globfldyz( snx,nr,snx,nsx )
55        _RL     globfld3d( snx,nsx,npx,sny,nsy,npy,nr )        _RL     globfld3d( snx,sny,nr,nsx,nsy )
56    
57    
58  c     == external ==  c     == external ==
59    
# Line 69  c     == end of interface == Line 70  c     == end of interface ==
70    
71  c     Initialise temporary file  c     Initialise temporary file
72        do k = 1,nr        do k = 1,nr
          do jp = 1,nPy  
73              do bj = jtlo,jthi              do bj = jtlo,jthi
74                 do j = jmin,jmax                 do j = jmin,jmax
                   do ip = 1,nPx  
75                       do bi = itlo,ithi                       do bi = itlo,ithi
76                          globfldyz(bi,ip,j,bj,jp,k) = 0. _d 0                          globfldyz(j,k,bi,bj) = 0. _d 0
77                       enddo                       enddo
78                    enddo                    enddo
                enddo  
79              enddo              enddo
          enddo  
80        enddo        enddo
81  c     Initialise temporary file  c     Initialise temporary file
82        do k = 1,nr        do k = 1,nr
          do jp = 1,nPy  
83              do bj = jtlo,jthi              do bj = jtlo,jthi
84                 do j = jmin,jmax                 do j = jmin,jmax
                   do ip = 1,nPx  
85                       do bi = itlo,ithi                       do bi = itlo,ithi
86                          do i = imin,imax                          do i = imin,imax
87                             globfld3d(i,bi,ip,j,bj,jp,k) = 0. _d 0                             globfld3d(i,j,k,bi,bj) = 0. _d 0
88                          enddo                          enddo
89                       enddo                       enddo
                   enddo  
90                 enddo                 enddo
91              enddo              enddo
          enddo  
92        enddo        enddo
93    
94  c--   Only the master thread will do I/O.  c--   Only the master thread will do I/O.
# Line 103  c--   Only the master thread will do I/O Line 96  c--   Only the master thread will do I/O
96    
97        nrec_nl=int(ncvarrecs(ivartype)/Nx)        nrec_nl=int(ncvarrecs(ivartype)/Nx)
98        do irec = 1, nrec_nl        do irec = 1, nrec_nl
99           call MDSWRITEFIELD_3D_GL( fname, ctrlprec, 'RL',                    call MDSWRITEFIELD( fname, ctrlprec,.FALSE., 'RL',
100       &        Nr, globfld3d,       &        Nr, globfld3d,
101       &        irec,   optimcycle,  mythid)       &        irec,   optimcycle,  mythid)
102    
103        enddo        enddo
104    
105        do irec = nrec_nl*Nx+1, ncvarrecs(ivartype)  CMM( addone for good measure
106           call MDSWRITEFIELD_YZ_GL( fname, ctrlprec, 'RL',  CMM      do irec = nrec_nl*Nx+1, ncvarrecs(ivartype)
107          do irec = nrec_nl*Nx+1, ncvarrecs(ivartype)+1
108    CMM)
109             call MDSWRITEFIELDYZ( fname, ctrlprec,.FALSE., 'RL',
110       &        Nr, globfldyz,       &        Nr, globfldyz,
111       &        irec,   optimcycle,  mythid)       &        irec,   optimcycle,  mythid)
112        enddo        enddo

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.22