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 5010 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/CRS/crs.F90 – NEMO

Ignore:
Timestamp:
2015-01-06T08:59:28+01:00 (9 years ago)
Author:
cbricaud
Message:

second modifications for output coarsening . see ticket 1426

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/CRS/crs.F90

    r5007 r5010  
    1010   USE dom_oce 
    1111   USE in_out_manager 
    12  
     12   USE lbcnfd 
    1313 
    1414   IMPLICIT NONE 
     
    7272      INTEGER ::   nproc_crs                   !:number for local processor 
    7373      INTEGER ::   nbondi_crs, nbondj_crs      !: mark of i- and j-direction local boundaries 
    74        
     74      
     75      INTEGER ::  nfsloop_full,nfeloop_full  
     76      INTEGER ::  nfsloop_crs ,nfeloop_crs 
    7577 
    7678      INTEGER, DIMENSION(:), ALLOCATABLE :: mis_crs, mie_crs, mis2_crs, mie2_crs  ! starting and ending i-indices of parent subset 
     
    8890      INTEGER, DIMENSION(:), ALLOCATABLE ::   njmppt_crs, njmppt_full    !: first, last indoor index for each j-domain 
    8991 
     92      INTEGER, DIMENSION(:,:), ALLOCATABLE ::   nfiimpp_full 
     93      INTEGER, DIMENSION(:,:), ALLOCATABLE ::   nfiimpp_crs 
    9094  
    9195      ! Masks 
     
    259263      !!------------------------------------------------------------------- 
    260264      !! Local variables 
    261       INTEGER, DIMENSION(1) :: ierr 
     265      INTEGER, DIMENSION(2) :: ierr 
    262266 
    263267      ierr(:) = 0 
     
    268272       &  njmppt_full(jpnij) , nlcjt_full(jpnij) , nldjt_full(jpnij) , nlejt_full(jpnij)  , STAT=ierr(1) ) 
    269273 
     274      ALLOCATE( nfiimpp_full(jpni,jpnj) , nfiimpp_crs(jpni,jpnj) ,STAT=ierr(2) ) 
     275 
    270276      crs_dom_alloc = MAXVAL(ierr) 
    271277 
     
    296302      !! ** Purpose : +Return back to parent grid domain  
    297303      !!--------------------------------------------------------------------- 
     304      write(narea+200,*)"dom_grid_glo";call flush(narea+200) 
    298305 
    299306      !                         Return to parent grid domain 
     
    326333      njmppt(:) = njmppt_full(:) 
    327334 
     335      nfsloop = nfsloop_full 
     336      nfeloop = nfeloop_full 
     337 
     338      nfiimpp(:,:) = nfiimpp_full(:,:) 
     339 
    328340   END SUBROUTINE dom_grid_glo 
    329341 
     
    334346      !! ** Purpose :  Save the parent grid information & Switch to coarse grid domain 
    335347      !!--------------------------------------------------------------------- 
    336  
     348      write(narea+200,*)"dom_grid_crs";call flush(narea+200) 
    337349      ! 
    338350      !                        Switch to coarse grid domain 
     
    366378      njmppt(:) = njmppt_crs(:) 
    367379 
     380      nfsloop = nfsloop_crs 
     381      nfeloop = nfeloop_crs 
     382 
     383      nfiimpp(:,:) = nfiimpp_crs(:,:) 
    368384 
    369385      ! 
Note: See TracChangeset for help on using the changeset viewer.