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 4785 for branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2014-09-24T14:03:02+02:00 (10 years ago)
Author:
rblod
Message:

dev_r4765_CNRS_agrif: First update of AGRIF for dynamic only (_flt and _ts), see ticket #1380 and associated wiki page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r4723 r4785  
    165165          ENDIF 
    166166 
     167#if defined key_agrif 
     168          CALL Agrif_Regrid() 
     169#endif 
     170 
    167171         DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
    168172 
    169173#if defined key_agrif 
    170             CALL Agrif_Step( stp )           ! AGRIF: time stepping 
     174            CALL stp                         ! AGRIF: time stepping 
    171175#else 
    172176            CALL stp( istp )                 ! standard time stepping 
     
    193197      ! 
    194198#if defined key_agrif 
    195       CALL Agrif_ParentGrid_To_ChildGrid() 
    196       IF( lk_diaobs ) CALL dia_obs_wri 
    197       IF( nn_timing == 1 )   CALL timing_finalize 
    198       CALL Agrif_ChildGrid_To_ParentGrid() 
     199      IF( .NOT. Agrif_Root() ) THEN 
     200         CALL Agrif_ParentGrid_To_ChildGrid() 
     201         IF( lk_diaobs ) CALL dia_obs_wri 
     202         IF( nn_timing == 1 )   CALL timing_finalize 
     203         CALL Agrif_ChildGrid_To_ParentGrid() 
     204      ENDIF 
    199205#endif 
    200206      IF( nn_timing == 1 )   CALL timing_finalize 
     
    713719      INTEGER :: ifac, jl, inu 
    714720      INTEGER, PARAMETER :: ntest = 14 
    715       INTEGER :: ilfax(ntest) 
    716  
     721      INTEGER, DIMENSION(ntest) :: ilfax 
     722      !!---------------------------------------------------------------------- 
    717723      ! lfax contains the set of allowed factors. 
    718       data (ilfax(jl),jl=1,ntest) / 16384, 8192, 4096, 2048, 1024, 512, 256,  & 
    719          &                            128,   64,   32,   16,    8,   4,   2  / 
    720       !!---------------------------------------------------------------------- 
     724      ilfax(:) = (/(2**jl,jl=ntest,1,-1)/) 
    721725 
    722726      ! Clear the error flag and initialise output vars 
Note: See TracChangeset for help on using the changeset viewer.