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 3823 for branches/2013/dev_r3411_CNRS4_IOCRS/NEMOGCM/NEMO/OPA_SRC/CRS/crs_dom.F90 – NEMO

Ignore:
Timestamp:
2013-02-28T14:31:33+01:00 (11 years ago)
Author:
cetlod
Message:

dev_r3411_CNRS4_IOCRS : minor bugfix + style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3411_CNRS4_IOCRS/NEMOGCM/NEMO/OPA_SRC/CRS/crs_dom.F90

    r3809 r3823  
    88   !!---------------------------------------------------------------------- 
    99   USE par_oce   
    10    USE dom_oce,  ONLY: nperio, narea, npolj, nlci, nlcj, nldi, nldj, nlei, nlej 
     10   USE dom_oce 
     11   USE in_out_manager 
    1112 
    1213   IMPLICIT NONE 
     
    1415 
    1516    
    16       PUBLIC crs_dom_alloc  ! Called from crsini.F90 
     17   PUBLIC crs_dom_alloc  ! Called from crsini.F90 
    1718   PUBLIC dom_grid_glo    
    18    PUBLIC dom_grid_crs    
     19   PUBLIC dom_grid_crs  
    1920 
    2021      ! Domain variables 
     
    2627                   jpj_full                     !: 2nd dimension of local parent grid domain 
    2728 
     29      INTEGER  ::  nistart, njstart 
     30      INTEGER  ::  niend  , njend 
     31 
    2832      INTEGER  ::  jpi_crsm1, jpj_crsm1         !: loop indices       
    2933      INTEGER  ::  jpiglo_crsm1, jpjglo_crsm1   !: loop indices       
     
    3135      INTEGER  ::  npolj_full, npolj_crs        !: north fold mark 
    3236      INTEGER  ::  jpiglo_full, jpjglo_full     !: jpiglo / jpjglo 
    33       INTEGER  ::  npiglo, npjglo      !: jpjglo 
     37      INTEGER  ::  npiglo, npjglo               !: jpjglo 
    3438      INTEGER  ::  nlci_full, nlcj_full         !: i-, j-dimension of local or sub domain on parent grid 
    3539      INTEGER  ::  nldi_full, nldj_full         !: starting indices of internal sub-domain on parent grid 
     
    4347      INTEGER  ::  nimpp_full, njmpp_full       !: global position of point (1,1) of subdomain on parent grid 
    4448      INTEGER  ::  nimpp_crs, njmpp_crs         !: set to 1,1 for now .  Valid only for monoproc 
    45  
    46  
    47       INTEGER, DIMENSION(:), ALLOCATABLE :: mis_crs, mie_crs, mjs_crs, mje_crs 
    48                                                 ! starting and ending indices of parent subset 
     49      INTEGER  ::  nreci_full, nrecj_full 
     50      INTEGER  ::  nreci_crs, nrecj_crs 
     51      !cc 
     52      INTEGER ::   noea_full, nowe_full        !: index of the local neighboring processors in 
     53      INTEGER ::   noso_full, nono_full        !: east, west, south and north directions 
     54      INTEGER ::   npne_full, npnw_full        !: index of north east and north west processor 
     55      INTEGER ::   npse_full, npsw_full        !: index of south east and south west processor 
     56      INTEGER ::   nbne_full, nbnw_full        !: logical of north east & north west processor 
     57      INTEGER ::   nbse_full, nbsw_full        !: logical of south east & south west processor 
     58      INTEGER ::   nidom_full                  !: ??? 
     59      INTEGER ::   nproc_full                  !:number for local processor 
     60      INTEGER ::   nbondi_full, nbondj_full    !: mark of i- and j-direction local boundaries 
     61      INTEGER ::   noea_crs, nowe_crs          !: index of the local neighboring processors in 
     62      INTEGER ::   noso_crs, nono_crs          !: east, west, south and north directions 
     63      INTEGER ::   npne_crs, npnw_crs          !: index of north east and north west processor 
     64      INTEGER ::   npse_crs, npsw_crs          !: index of south east and south west processor 
     65      INTEGER ::   nbne_crs, nbnw_crs          !: logical of north east & north west processor 
     66      INTEGER ::   nbse_crs, nbsw_crs          !: logical of south east & south west processor 
     67      INTEGER ::   nidom_crs                   !: ??? 
     68      INTEGER ::   nproc_crs                   !:number for local processor 
     69      INTEGER ::   nbondi_crs, nbondj_crs      !: mark of i- and j-direction local boundaries 
     70       
     71 
     72      INTEGER, DIMENSION(:), ALLOCATABLE :: mis_crs, mie_crs  ! starting and ending i-indices of parent subset 
     73      INTEGER, DIMENSION(:), ALLOCATABLE :: mjs_crs, mje_crs ! starting and ending  j-indices of parent subset 
    4974      INTEGER  :: mxbinctr, mybinctr            ! central point in grid box 
    5075  
     
    135160      !!------------------------------------------------------------------- 
    136161      !! Local variables 
    137       INTEGER, DIMENSION(15) :: ierr 
     162      INTEGER, DIMENSION(17) :: ierr 
    138163 
    139164      ierr(:) = 0 
     
    206231      ALLOCATE( nmln_crs(jpi_crs,jpj_crs) , hmld_crs(jpi_crs,jpj_crs) , & 
    207232         &      hmlp_crs(jpi_crs,jpj_crs) , hmlpt_crs(jpi_crs,jpj_crs) , STAT=ierr(14) ) 
    208  
    209  
     233          
    210234      crs_dom_alloc = MAXVAL(ierr) 
    211235 
     
    227251 
    228252      npolj  = npolj_full 
    229       jpnij  = jpnij_full 
    230       narea  = narea_full 
    231253      jpiglo = jpiglo_full 
    232254      jpjglo = jpjglo_full 
    233255 
     256      nlci   = nlci_full 
    234257      nlcj   = nlcj_full 
    235       nlci   = nlci_full 
    236258      nldi   = nldi_full 
     259      nldj   = nldj_full 
    237260      nlei   = nlei_full 
    238261      nlej   = nlej_full 
    239  
    240       nldj   = nldj_full 
     262      nimpp  = nimpp_full 
     263      njmpp  = njmpp_full 
     264       
    241265 
    242266   END SUBROUTINE dom_grid_glo 
     
    257281 
    258282      npolj_full  = npolj 
    259       jpnij_full  = jpnij 
    260       narea_full  = narea 
    261283      jpiglo_full = jpiglo 
    262284      jpjglo_full = jpjglo 
     
    265287      nlci_full   = nlci 
    266288      nldi_full   = nldi 
     289      nldj_full   = nldj 
    267290      nlei_full   = nlei 
    268291      nlej_full   = nlej 
    269       nldj_full   = nldj 
    270  
     292      nimpp_full  = nimpp      
     293      njmpp_full  = njmpp 
     294      ! 
    271295      !                        Switch to coarse grid domain 
    272296      jpi    = jpi_crs 
     
    277301 
    278302      npolj  = npolj_crs 
    279       jpnij  = jpnij_crs 
    280       narea  = narea_crs 
    281303      jpiglo = jpiglo_crs 
    282304      jpjglo = jpjglo_crs 
     305 
    283306 
    284307      nlci   = nlci_crs 
     
    287310      nlei   = nlei_crs 
    288311      nlej   = nlej_crs 
    289  
    290312      nldj   = nldj_crs 
    291  
     313      nimpp  = nimpp_crs 
     314      njmpp  = njmpp_crs 
     315      ! 
    292316   END SUBROUTINE dom_grid_crs 
     317    
    293318   !!====================================================================== 
    294319 
Note: See TracChangeset for help on using the changeset viewer.