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/istate.F90 – NEMO

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

AGRIF with northfold and perio, see ticket #2129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.