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

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

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

revision 1.25 by jmc, Tue Oct 9 00:00:00 2007 UTC revision 1.28 by gforget, Sat Feb 2 02:34:49 2008 UTC
# Line 32  c     == global variables == Line 32  c     == global variables ==
32  #include "optim.h"  #include "optim.h"
33  #ifdef ALLOW_PTRACERS  #ifdef ALLOW_PTRACERS
34  # include "PTRACERS_SIZE.h"  # include "PTRACERS_SIZE.h"
35  # include "PTRACERS.h"  c#include "PTRACERS_PARAMS.h"
36    # include "PTRACERS_FIELDS.h"
37  #endif  #endif
38  #ifdef ALLOW_ECCO  #ifdef ALLOW_ECCO
39  # include "ecco_cost.h"  # include "ecco_cost.h"
# Line 117  c--   Temperature field. Line 118  c--   Temperature field.
118                  theta(i,j,k,bi,bj) = theta(i,j,k,bi,bj) +                  theta(i,j,k,bi,bj) = theta(i,j,k,bi,bj) +
119       &                               fac*tmpfld3d(i,j,k,bi,bj)       &                               fac*tmpfld3d(i,j,k,bi,bj)
120  #endif  #endif
121    #ifndef DISABLE_CTRL_THETA_LIMIT
122                  if(theta(i,j,k,bi,bj).lt.-2.0)                  if(theta(i,j,k,bi,bj).lt.-2.0)
123       &               theta(i,j,k,bi,bj)= -2.0       &               theta(i,j,k,bi,bj)= -2.0
124    #endif
125                enddo                enddo
126              enddo              enddo
127            enddo            enddo
# Line 274  c--   kapgm. Line 277  c--   kapgm.
277        enddo        enddo
278  #endif  #endif
279    
280    #ifdef ALLOW_KAPREDI_CONTROL
281    c--   kapredi.
282          il=ilnblnk( xx_kapredi_file )
283          write(fnamegeneric(1:80),'(2a,i10.10)')
284         &     xx_kapredi_file(1:il),'.',optimcycle
285          call active_read_xyz( fnamegeneric, tmpfld3d, 1,
286         &                      doglobalread, ladinit, optimcycle,
287         &                      mythid, xx_kapredi_dummy )
288          do bj = jtlo,jthi
289            do bi = itlo,ithi
290              do k = 1,nr
291                do j = jmin,jmax
292                  do i = imin,imax
293                    kapredi(i,j,k,bi,bj) = kapredi(i,j,k,bi,bj) +
294         &                               tmpfld3d(i,j,k,bi,bj)
295                  enddo
296                enddo
297              enddo
298           enddo
299          enddo
300    #endif
301    
302  #ifdef ALLOW_EFLUXY0_CONTROL  #ifdef ALLOW_EFLUXY0_CONTROL
303  c--   y-component EP-flux field.  c--   y-component EP-flux field.
304        il=ilnblnk( xx_efluxy_file )        il=ilnblnk( xx_efluxy_file )
# Line 538  c--   Update the tile edges. Line 563  c--   Update the tile edges.
563  #ifdef ALLOW_KAPGM_CONTROL  #ifdef ALLOW_KAPGM_CONTROL
564        _EXCH_XYZ_R8( kapgm, mythid)        _EXCH_XYZ_R8( kapgm, mythid)
565  #endif  #endif
566    #ifdef ALLOW_KAPREDI_CONTROL
567          _EXCH_XYZ_R8( kapredi, mythid)
568    #endif
569  #ifdef ALLOW_EFLUXY0_CONTROL  #ifdef ALLOW_EFLUXY0_CONTROL
570        _EXCH_XYZ_R8( EfluxY, mythid )        _EXCH_XYZ_R8( EfluxY, mythid )
571  #endif  #endif

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.22