New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 5385 for trunk/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2015-06-09T15:50:42+02:00 (9 years ago)
Author:
cetlod
Message:

merge 2015/dev_r5204_CNRS_PISCES_dcy branch into the trunk, see ticket #1532

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r5363 r5385  
    126126         CALL set_grid( "V", glamv, gphiv ) 
    127127         CALL set_grid( "W", glamt, gphit ) 
     128         CALL set_grid_znl( gphit ) 
    128129      ENDIF 
    129130 
     
    135136         CALL set_grid( "V", glamv_crs, gphiv_crs )  
    136137         CALL set_grid( "W", glamt_crs, gphit_crs )  
     138         CALL set_grid_znl( gphit_crs ) 
    137139          ! 
    138140         CALL dom_grid_glo   ! Return to parent grid domain 
     
    13841386 
    13851387 
     1388   SUBROUTINE set_grid_znl( plat ) 
     1389      !!---------------------------------------------------------------------- 
     1390      !!                     ***  ROUTINE set_grid_znl  *** 
     1391      !! 
     1392      !! ** Purpose :   define grids for zonal mean 
     1393      !! 
     1394      !!---------------------------------------------------------------------- 
     1395      REAL(wp), DIMENSION(jpi,jpj), INTENT(in) ::   plat 
     1396      ! 
     1397      REAL(wp), DIMENSION(:), ALLOCATABLE  ::   zlon 
     1398      INTEGER  :: ni,nj, ix, iy 
     1399 
     1400       
     1401      ni=nlei-nldi+1 ; nj=nlej-nldj+1            ! define zonal mean domain (jpj*jpk) 
     1402      ALLOCATE( zlon(ni*nj) )       ;       zlon(:) = 0. 
     1403 
     1404      CALL iom_set_domain_attr("gznl", ni_glo=jpiglo, nj_glo=jpjglo, ibegin=nimpp+nldi-1, jbegin=njmpp+nldj-1, ni=ni, nj=nj) 
     1405      CALL iom_set_domain_attr("gznl", data_dim=2, data_ibegin = 1-nldi, data_ni = jpi, data_jbegin = 1-nldj, data_nj = jpj) 
     1406      CALL iom_set_domain_attr("gznl", lonvalue = zlon,   & 
     1407         &                             latvalue = RESHAPE(plat(nldi:nlei, nldj:nlej),(/ ni*nj /)))   
     1408      ! 
     1409      CALL dom_ngb( 180., 90., ix, iy, 'T' ) !  i-line that passes near the North Pole : Reference latitude (used in plots) 
     1410      CALL iom_set_domain_attr ('ptr', zoom_ibegin=ix, zoom_nj=jpjglo) 
     1411      CALL iom_update_file_name('ptr') 
     1412      ! 
     1413   END SUBROUTINE set_grid_znl 
     1414 
    13861415   SUBROUTINE set_scalar 
    13871416      !!---------------------------------------------------------------------- 
     
    14681497      CALL set_mooring( zlonpira, zlatpira ) 
    14691498 
    1470       ! diaptr : zonal mean  
    1471       CALL dom_ngb( 180., 90., ix, iy, 'T' ) !  i-line that passes near the North Pole : Reference latitude (used in plots) 
    1472       CALL iom_set_domain_attr ('ptr', zoom_ibegin=ix, zoom_nj=jpjglo) 
    1473       CALL iom_update_file_name('ptr') 
    1474       ! 
    14751499       
    14761500   END SUBROUTINE set_xmlatt 
Note: See TracChangeset for help on using the changeset viewer.