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 14200 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/DOM/istate.F90 – NEMO

Ignore:
Timestamp:
2020-12-17T15:36:44+01:00 (4 years ago)
Author:
mcastril
Message:

Merging r14117 through r14199 into dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/DOM/istate.F90

    r14086 r14200  
    9090 
    9191#if defined key_agrif 
    92       IF ( (.NOT.Agrif_root()).AND.ln_init_chfrpar ) THEN 
     92      IF ( .NOT.Agrif_root() .AND. ln_init_chfrpar ) THEN 
    9393         numror = 0                           ! define numror = 0 -> no restart file to read 
    9494         ln_1st_euler = .true.                ! Set time-step indicator at nit000 (euler forward) 
     
    9797         ! 
    9898         ts (:,:,:,:,Kmm) = ts (:,:,:,:,Kbb) 
    99 !!st 
    100 !!st need for a recent agrif version to be displaced toward ssh_init_rst with agrif_istate_ssh 
    101          ssh(:,:,    Kmm) = ssh(:,:    ,Kbb) 
    102 !!st end 
    10399         uu (:,:,:  ,Kmm) = uu (:,:,:  ,Kbb) 
    104100         vv (:,:,:  ,Kmm) = vv (:,:,:  ,Kbb) 
     
    116112            CALL day_init                        ! model calendar (using both namelist and restart infos) 
    117113            !                                    ! Initialization of ocean to zero 
     114            ! 
    118115            IF( ln_tsd_init ) THEN                
    119116               CALL dta_tsd( nit000, ts(:,:,:,:,Kbb) )       ! read 3D T and S data at nit000 
    120117               ! 
    121                ssh(:,:,Kbb)   = 0._wp               ! set the ocean at rest 
    122                uu  (:,:,:,Kbb) = 0._wp 
     118               uu  (:,:,:,Kbb) = 0._wp               ! set the ocean at rest 
    123119               vv  (:,:,:,Kbb) = 0._wp   
    124                ! 
    125                IF( ll_wd ) THEN 
    126                   ssh(:,:,Kbb) =  -ssh_ref  ! Added in 30 here for bathy that adds 30 as Iterative test CEOD  
    127                   ! 
    128                   ! Apply minimum wetdepth criterion 
    129                   ! 
    130                   DO_2D( 1, 1, 1, 1 ) 
    131                      IF( ht_0(ji,jj) + ssh(ji,jj,Kbb)  < rn_wdmin1 ) THEN 
    132                         ssh(ji,jj,Kbb) = tmask(ji,jj,1)*( rn_wdmin1 - (ht_0(ji,jj)) ) 
    133                      ENDIF 
    134                   END_2D 
    135                ENDIF  
    136120               ! 
    137121            ELSE                                 ! user defined initial T and S 
     
    142126            ENDIF 
    143127            ts  (:,:,:,:,Kmm) = ts (:,:,:,:,Kbb)       ! set now values from to before ones 
    144             ssh (:,:,Kmm)     = ssh(:,:,Kbb)    
    145             uu   (:,:,:,Kmm)   = uu  (:,:,:,Kbb) 
    146             vv   (:,:,:,Kmm)   = vv  (:,:,:,Kbb) 
     128            uu    (:,:,:,Kmm) = uu   (:,:,:,Kbb) 
     129            vv    (:,:,:,Kmm) = vv   (:,:,:,Kbb) 
    147130 
    148131         ! 
Note: See TracChangeset for help on using the changeset viewer.