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

Ignore:
Timestamp:
2015-01-05T10:37:56+01:00 (9 years ago)
Author:
cbricaud
Message:

first modifications for output coarsening . see tieck 1426

File:
1 edited

Legend:

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

    r4064 r5007  
    1717    
    1818   PUBLIC crs_dom_alloc  ! Called from crsini.F90 
     19   PUBLIC crs_dom_alloc1  ! Called from crsini.F90 
    1920   PUBLIC crs_dom_alloc2  ! Called from crsini.F90 
    2021   PUBLIC dom_grid_glo    
     
    166167CONTAINS 
    167168    
    168    INTEGER FUNCTION crs_dom_alloc() 
     169   INTEGER FUNCTION crs_dom_alloc1() 
    169170      !!------------------------------------------------------------------- 
    170171      !!                     *** FUNCTION crs_dom_alloc *** 
     
    172173      !!------------------------------------------------------------------- 
    173174      !! Local variables 
    174       INTEGER, DIMENSION(17) :: ierr 
     175      INTEGER, DIMENSION(14) :: ierr 
    175176 
    176177      ierr(:) = 0 
     
    247248      ALLOCATE( nmln_crs(jpi_crs,jpj_crs) , hmld_crs(jpi_crs,jpj_crs) , & 
    248249         &      hmlp_crs(jpi_crs,jpj_crs) , hmlpt_crs(jpi_crs,jpj_crs) , STAT=ierr(14) ) 
     250 
     251      crs_dom_alloc1 = MAXVAL(ierr) 
     252 
     253   END FUNCTION crs_dom_alloc1 
     254 
     255   INTEGER FUNCTION crs_dom_alloc() 
     256      !!------------------------------------------------------------------- 
     257      !!                     *** FUNCTION crs_dom_alloc *** 
     258      !!  ** Purpose :   Allocate public crs arrays   
     259      !!------------------------------------------------------------------- 
     260      !! Local variables 
     261      INTEGER, DIMENSION(1) :: ierr 
     262 
     263      ierr(:) = 0 
    249264          
    250265      ALLOCATE( nimppt_crs(jpnij) , nlcit_crs(jpnij) , nldit_crs(jpnij) , nleit_crs(jpnij), & 
    251266       &  nimppt_full(jpnij) , nlcit_full(jpnij) , nldit_full(jpnij) , nleit_full(jpnij),   & 
    252267                njmppt_crs(jpnij) , nlcjt_crs(jpnij) , nldjt_crs(jpnij) , nlejt_crs(jpnij), & 
    253        &  njmppt_full(jpnij) , nlcjt_full(jpnij) , nldjt_full(jpnij) , nlejt_full(jpnij)  , STAT=ierr(15) ) 
    254  
    255           
     268       &  njmppt_full(jpnij) , nlcjt_full(jpnij) , nldjt_full(jpnij) , nlejt_full(jpnij)  , STAT=ierr(1) ) 
     269 
    256270      crs_dom_alloc = MAXVAL(ierr) 
    257271 
     
    268282      ierr(:) = 0 
    269283       
    270       ALLOCATE( mjs_crs(nlej_crs) , mje_crs(nlej_crs), mis_crs(nlei_crs) , mie_crs(nlei_crs), STAT=ierr(1) ) 
     284      !cbr ALLOCATE( mjs_crs(nlej_crs) , mje_crs(nlej_crs), mis_crs(nlei_crs) , mie_crs(nlei_crs), STAT=ierr(1) ) 
     285      !cbr pk on alloue ac nlej_crs ?????? 
     286      !cbrALLOCATE( mjs_crs(nlcj_crs) , mje_crs(nlcj_crs), mis_crs(nlci_crs) , mie_crs(nlci_crs), STAT=ierr(1) ) 
     287      ALLOCATE( mjs_crs(jpj_crs) , mje_crs(jpj_crs), mis_crs(jpi_crs) , mie_crs(jpi_crs), STAT=ierr(1) ) 
    271288      crs_dom_alloc2 = MAXVAL(ierr) 
    272289 
Note: See TracChangeset for help on using the changeset viewer.