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 4980 for branches/2014 – NEMO

Changeset 4980 for branches/2014


Ignore:
Timestamp:
2014-12-08T19:23:02+01:00 (9 years ago)
Author:
jchanut
Message:

Recursive update 2: change update location

Location:
branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC/agrif_opa_update.F90

    r4978 r4980  
    3434      !!--------------------------------------------- 
    3535      !  
    36       IF (Agrif_Root().OR.(.NOT.lk_agrif_doupd)) RETURN 
     36      IF (Agrif_Root()) RETURN 
    3737      ! 
    3838#if defined TWO_WAY   
     
    5858      Agrif_UseSpecialValueInUpdate = .FALSE. 
    5959      ! 
    60       ! Do recursive update: 
    61       CALL Agrif_ChildGrid_To_ParentGrid() 
    62       CALL Agrif_Update_Tra() 
    63       CALL Agrif_ParentGrid_To_ChildGrid() 
     60      IF ( lk_agrif_doupd ) THEN ! Initialisation: do recursive update: 
     61         CALL Agrif_ChildGrid_To_ParentGrid() 
     62         CALL Agrif_Update_Tra() 
     63         CALL Agrif_ParentGrid_To_ChildGrid() 
     64      ENDIF 
    6465      ! 
    6566#endif 
     
    7273      !!--------------------------------------------- 
    7374      !  
    74       IF (Agrif_Root().OR.(.NOT.lk_agrif_doupd)) RETURN 
     75      IF (Agrif_Root()) RETURN 
    7576      ! 
    7677#if defined TWO_WAY 
     
    143144      ! 
    144145      ! Do recursive update: 
    145       CALL Agrif_ChildGrid_To_ParentGrid() 
    146       CALL Agrif_Update_Dyn() 
    147       CALL Agrif_ParentGrid_To_ChildGrid() 
     146      IF ( lk_agrif_doupd ) THEN ! Initialisation: do recursive update: 
     147         CALL Agrif_ChildGrid_To_ParentGrid() 
     148         CALL Agrif_Update_Dyn() 
     149         CALL Agrif_ParentGrid_To_ChildGrid() 
     150      ENDIF 
    148151      ! 
    149152   END SUBROUTINE Agrif_Update_Dyn 
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC/agrif_user.F90

    r4978 r4980  
    301301   Agrif_UseSpecialValueInUpdate = .FALSE. 
    302302   nbcline = 0 
     303   lk_agrif_doupd = .FALSE. 
    303304   ! 
    304305END SUBROUTINE Agrif_InitValues_cont 
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/OPA_SRC/step.F90

    r4978 r4980  
    8484      IF ( kstp == (nit000 + 1) ) lk_agrif_fstep = .FALSE. 
    8585 
    86       IF ( Agrif_NbStepint() .EQ. (Agrif_irhot()-1)) THEN  
    87          lk_agrif_doupd = .TRUE. 
    88       ELSE 
    89          lk_agrif_doupd = .FALSE. 
    90       ENDIF 
    91  
    9286# if defined key_iomput 
    9387      IF( Agrif_Nbstepint() == 0 )   CALL iom_swap( "nemo" ) 
     
    309303      IF( lk_vvl           )   CALL dom_vvl_sf_swp( kstp )  ! swap of vertical scale factors 
    310304      ! 
     305      IF( lrst_oce         )   CALL rst_write( kstp )       ! write output ocean restart file 
     306 
     307#if defined key_agrif 
     308      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     309      ! AGRIF 
     310      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<       
     311                               CALL Agrif_Integrate_ChildGrids( stp )   
     312 
     313      IF ( Agrif_NbStepint().EQ.0 ) THEN 
     314                               CALL Agrif_Update_Tra()      ! Update active tracers 
     315                               CALL Agrif_Update_Dyn()      ! Update momentum 
     316      ENDIF 
     317#endif 
    311318      IF( ln_diahsb        )   CALL dia_hsb( kstp )         ! - ML - global conservation diagnostics 
    312319      IF( lk_diaobs  )         CALL dia_obs( kstp )         ! obs-minus-model (assimilation) diagnostics (call after dynamics update) 
    313320 
    314 #if defined key_agrif 
    315       !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    316       ! AGRIF update (TWO WAY) 
    317       !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    318       IF ( Agrif_Level().EQ.Agrif_MaxLevel() ) THEN 
    319                                CALL Agrif_Update_Tra()      ! Update active tracers 
    320                                CALL Agrif_Update_Dyn()      ! Update momentum 
    321       ENDIF 
    322 #endif 
    323  
    324       !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    325       ! Control and restarts 
     321      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     322      ! Control 
    326323      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    327324                               CALL stp_ctl( kstp, indic ) 
     
    335332         IF(lwm) CALL FLUSH    ( numoni )     ! flush output namelist ice     
    336333      ENDIF 
    337       IF( lrst_oce         )   CALL rst_write    ( kstp )   ! write output ocean restart file 
    338334 
    339335      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    361357      IF( nn_timing == 1 .AND.  kstp == nit000  )   CALL timing_reset 
    362358      !      
    363 #if defined key_agrif 
    364                                CALL Agrif_Integrate_ChildGrids( stp )    
    365 #endif 
    366359      ! 
    367360   END SUBROUTINE stp 
Note: See TracChangeset for help on using the changeset viewer.