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 13026 for NEMO/branches/2020/dev_r12973_AGRIF_CMEMS/src/OCE/DOM – NEMO

Ignore:
Timestamp:
2020-06-03T16:30:02+02:00 (4 years ago)
Author:
rblod
Message:

AGRIF with northfold and perio, see ticket #2129

Location:
NEMO/branches/2020/dev_r12973_AGRIF_CMEMS/src/OCE/DOM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12973_AGRIF_CMEMS/src/OCE/DOM/dom_oce.F90

    r12933 r13026  
    215215#if defined key_agrif 
    216216   LOGICAL, PUBLIC, PARAMETER ::   lk_agrif = .TRUE.    !: agrif flag 
     217   LOGICAL, PUBLIC            ::   lk_south, lk_north, lk_west, lk_east !: Child grid boundaries (interpolation or not) 
    217218#else 
    218219   LOGICAL, PUBLIC, PARAMETER ::   lk_agrif = .FALSE.   !: agrif flag 
  • NEMO/branches/2020/dev_r12973_AGRIF_CMEMS/src/OCE/DOM/domain.F90

    r12489 r13026  
    187187      ENDIF 
    188188      ! 
     189 
    189190      IF( lk_c1d         )   CALL cor_c1d       ! 1D configuration: Coriolis set at T-point 
    190191      ! 
     192 
     193#if defined key_agrif 
     194      IF( .NOT. Agrif_Root() ) CALL Agrif_Init_Domain( Kbb, Kmm, Kaa ) 
     195#endif 
    191196      IF( ln_meshmask    )   CALL dom_wri       ! Create a domain file 
    192197      IF( .NOT.ln_rstart )   CALL dom_ctl       ! Domain control 
     
    307312902   IF( ios >  0 )   CALL ctl_nam ( ios , 'namrun in configuration namelist' ) 
    308313      IF(lwm) WRITE ( numond, namrun ) 
     314 
     315#if defined key_agrif 
     316      IF( .NOT. Agrif_Root() ) THEN 
     317            nn_it000 = (Agrif_Parent(nn_it000)-1)*Agrif_IRhot() + 1 
     318            nn_itend =  Agrif_Parent(nn_itend)   *Agrif_IRhot() 
     319      ENDIF 
     320#endif 
    309321      ! 
    310322      IF(lwp) THEN                  ! control print 
     
    403415      IF(lwm) WRITE( numond, namdom ) 
    404416      ! 
     417#if defined key_agrif 
     418      IF( .NOT. Agrif_Root() ) THEN 
     419            rn_Dt = Agrif_Parent(rn_Dt) / Agrif_Rhot() 
     420      ENDIF 
     421#endif 
     422      ! 
    405423      IF(lwp) THEN 
    406424         WRITE(numout,*) 
  • NEMO/branches/2020/dev_r12973_AGRIF_CMEMS/src/OCE/DOM/istate.F90

    r12489 r13026  
    3535   USE lib_mpp         ! MPP library 
    3636   USE restart         ! restart 
     37#if defined key_agrif 
     38   USE agrif_oce_interp 
     39   USE agrif_oce 
     40#endif    
    3741 
    3842   IMPLICIT NONE 
     
    7074!!gm  Why not include in the first call of dta_tsd ?   
    7175!!gm  probably associated with the use of internal damping... 
    72                      CALL dta_tsd_init        ! Initialisation of T & S input data 
     76       CALL dta_tsd_init        ! Initialisation of T & S input data 
    7377!!gm to be moved in usrdef of C1D case 
    7478!      IF( lk_c1d )   CALL dta_uvd_init        ! Initialization of U & V input data 
     
    97101         ! 
    98102         IF( ln_tsd_init ) THEN                
    99             CALL dta_tsd( nit000, ts(:,:,:,:,Kbb) )       ! read 3D T and S data at nit000 
     103            IF( Agrif_root() ) THEN 
     104               CALL dta_tsd( nit000, ts(:,:,:,:,Kbb) )       ! read 3D T and S data at nit000 
     105               ssh(:,:,Kbb)   = 0._wp               ! set the ocean at rest 
     106               uu  (:,:,:,Kbb) = 0._wp 
     107               vv  (:,:,:,Kbb) = 0._wp   
     108#if defined key_agrif 
     109            ELSE 
     110               CALL agrif_istate( Kbb, Kmm, Kaa )  
     111#endif 
     112            ENDIF 
    100113            ! 
    101             ssh(:,:,Kbb)   = 0._wp               ! set the ocean at rest 
    102114            IF( ll_wd ) THEN 
    103115               ssh(:,:,Kbb) =  -ssh_ref  ! Added in 30 here for bathy that adds 30 as Iterative test CEOD  
     
    111123               END_2D 
    112124            ENDIF  
    113             uu  (:,:,:,Kbb) = 0._wp 
    114             vv  (:,:,:,Kbb) = 0._wp   
    115             ! 
     125             ! 
    116126         ELSE                                 ! user defined initial T and S 
    117127            CALL usr_def_istate( gdept(:,:,:,Kbb), tmask, ts(:,:,:,:,Kbb), uu(:,:,:,Kbb), vv(:,:,:,Kbb), ssh(:,:,Kbb)  )          
Note: See TracChangeset for help on using the changeset viewer.