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 7158 for branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/NEMO/NST_SRC/agrif_lim3_update.F90 – NEMO

Ignore:
Timestamp:
2016-10-29T01:21:05+02:00 (7 years ago)
Author:
clem
Message:

debug branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_v3_6_STABLE_r6506_AGRIF_LIM3/NEMOGCM/NEMO/NST_SRC/agrif_lim3_update.F90

    r6746 r7158  
    5252      !!---------------------------------------------------------------------- 
    5353      ! 
    54       IF( ( Agrif_NbStepint() .NE. (Agrif_irhot()-1) ) .AND. (kt /= 0) )  RETURN  ! do not update if nb of child time steps differ from time refinement 
    55                                                                                   ! i.e. update only at the parent time step 
     54!      IF( ( MOD( kt-nit000, Agrif_irhot() * Agrif_Parent(nn_fsbc) ) /=0 ) .AND. (kt /= 0) ) THEN 
     55!         PRINT *, 'clem NOT udpate, kt=',kt,Agrif_NbStepint() 
     56!      ELSE 
     57!         PRINT *, 'clem     UPDATE, kt=',kt,Agrif_NbStepint() 
     58!      ENDIF 
    5659 
     60      !! clem: I think the update should take place each time the ocean sees the surface forcings (but maybe I am wrong and we should update every rhot time steps)  
     61      IF( ( MOD( kt-nit000, Agrif_irhot() * Agrif_Parent(nn_fsbc) ) /=0 ) .AND. (kt /= 0) ) RETURN ! do not update if nb of child time steps differ from time refinement 
     62                                                                                                   ! i.e. update only at the parent time step 
     63      !! clem: this condition is clearly wrong if nn_fsbc/=1 (==> Agrif_NbStepint /= (Agrif_irhot()-1) all the time) 
     64      !!IF( ( Agrif_NbStepint() .NE. (Agrif_irhot()-1) ) .AND. (kt /= 0) )  RETURN 
     65       
    5766      Agrif_UseSpecialValueInUpdate = .TRUE. 
    5867      Agrif_SpecialValueFineGrid = -9999. 
     
    6069      IF( MOD(nbcline,nbclineupdate) == 0) THEN ! update the whole basin at each nbclineupdate (=nn_cln_update) baroclinic parent time steps 
    6170                                                ! nbcline is incremented (+1) at the end of each parent time step from 0 (1st time step) 
    62                                                 ! clem: j'ai l'impression qu'il y a un decalage de 1 mais selon rachid c ok 
    6371         CALL Agrif_Update_Variable( tra_ice_id , procname = update_tra_ice  ) 
    6472         CALL Agrif_Update_Variable( u_ice_id   , procname = update_u_ice    ) 
    6573         CALL Agrif_Update_Variable( v_ice_id   , procname = update_v_ice    ) 
    66       ELSE                                      ! update only the boundaries 
    67                                                 ! defined par locupdate 
     74      ELSE                                      ! update only the boundaries defined par locupdate 
    6875         CALL Agrif_Update_Variable( tra_ice_id , locupdate=(/0,2/), procname = update_tra_ice  ) 
    6976         CALL Agrif_Update_Variable( u_ice_id   , locupdate=(/0,1/), procname = update_u_ice    ) 
Note: See TracChangeset for help on using the changeset viewer.