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 7256 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2016-11-18T08:18:45+01:00 (7 years ago)
Author:
cbricaud
Message:

phaze NEMO routines in CRS branch with nemo_v3_6_STABLE branch at rev 7213 (09-09-2016) (merge -r 5519:7213 )

File:
1 edited

Legend:

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

    r7217 r7256  
    8383   USE crsini          ! initialise grid coarsening utility 
    8484   USE lbcnfd, ONLY: isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges  
    85    USE trabbl_crs 
     85   !cbr USE trabbl_crs 
    8686   USE sbc_oce, ONLY: lk_oasis 
    8787   USE stopar 
     
    164164          ENDIF 
    165165 
     166#if defined key_agrif 
     167          CALL Agrif_Regrid() 
     168#endif 
     169 
    166170         DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
    167171#if defined key_agrif 
    168             CALL Agrif_Step( stp )           ! AGRIF: time stepping 
     172            CALL stp                         ! AGRIF: time stepping 
    169173#else 
    170174            CALL stp( istp )                 ! standard time stepping 
     
    195199      ! 
    196200#if defined key_agrif 
    197       CALL Agrif_ParentGrid_To_ChildGrid() 
    198       IF( lk_diaobs ) CALL dia_obs_wri 
    199       IF( nn_timing == 1 )   CALL timing_finalize 
    200       CALL Agrif_ChildGrid_To_ParentGrid() 
     201      IF( .NOT. Agrif_Root() ) THEN 
     202         CALL Agrif_ParentGrid_To_ChildGrid() 
     203         IF( lk_diaobs ) CALL dia_obs_wri 
     204         IF( nn_timing == 1 )   CALL timing_finalize 
     205         CALL Agrif_ChildGrid_To_ParentGrid() 
     206      ENDIF 
    201207#endif 
    202208      IF( nn_timing == 1 )   CALL timing_finalize 
     
    342348         jpj = ( jpjglo-2*jprecj + (jpnj-1) ) / jpnj + 2*jprecj   ! second dim. 
    343349#endif 
    344       ENDIF 
     350      ENDIF          
    345351         jpk = jpkdta                                             ! third dim 
     352#if defined key_agrif 
     353         ! simple trick to use same vertical grid as parent 
     354         ! but different number of levels:  
     355         ! Save maximum number of levels in jpkdta, then define all vertical grids 
     356         ! with this number. 
     357         ! Suppress once vertical online interpolation is ok 
     358         IF(.NOT.Agrif_Root()) jpkdta = Agrif_Parent(jpkdta) 
     359#endif 
    346360         jpim1 = jpi-1                                            ! inner domain indices 
    347361         jpjm1 = jpj-1                                            !   "           " 
     
    438452      IF( lk_trabbl     )   CALL tra_bbl_init   ! advective (and/or diffusive) bottom boundary layer scheme 
    439453      ! 
    440       IF( ln_crs_top .AND. lk_trabbl     )  THEN 
    441                             CALL dom_grid_crs  
    442                             CALL tra_bbl_init_crs   ! advective (and/or diffusive) bottom boundary layer scheme 
    443                             CALL dom_grid_glo 
    444       ENDIF 
     454      !cbr IF( ln_crs_top .AND. lk_trabbl     )  THEN 
     455      !                      CALL dom_grid_crs  
     456      !                      CALL tra_bbl_init_crs   ! advective (and/or diffusive) bottom boundary layer scheme 
     457      !                      CALL dom_grid_glo 
     458      !ENDIF 
    445459      ! 
    446460                            CALL tra_dmp_init   ! internal damping trends- tracers 
     
    468482      IF( ln_crs_top )      CALL dom_grid_crs 
    469483                            CALL     trc_init 
    470                             CALL ldf_tra_crs_init 
     484      IF( ln_crs_top )      CALL ldf_tra_crs_init 
    471485      IF( ln_crs_top )      CALL dom_grid_glo 
    472486#endif 
     
    735749      INTEGER :: ifac, jl, inu 
    736750      INTEGER, PARAMETER :: ntest = 14 
    737       INTEGER :: ilfax(ntest) 
    738       ! 
    739       ! lfax contains the set of allowed factors. 
    740       data (ilfax(jl),jl=1,ntest) / 16384, 8192, 4096, 2048, 1024, 512, 256,  & 
    741          &                            128,   64,   32,   16,    8,   4,   2  / 
    742       !!---------------------------------------------------------------------- 
     751      INTEGER, DIMENSION(ntest) :: ilfax 
     752      ! 
     753      ! ilfax contains the set of allowed factors. 
     754      ilfax(:) = (/(2**jl,jl=ntest,1,-1)/) 
     755      !!---------------------------------------------------------------------- 
     756      ! ilfax contains the set of allowed factors. 
     757      ilfax(:) = (/(2**jl,jl=ntest,1,-1)/) 
    743758 
    744759      ! Clear the error flag and initialise output vars 
Note: See TracChangeset for help on using the changeset viewer.