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 13874 for NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/tests/ISOMIP+ – NEMO

Ignore:
Timestamp:
2020-11-25T14:49:40+01:00 (4 years ago)
Author:
techene
Message:

#2574 ssh set up at initialization or restart separated from u,v,ts : removed from istate_init added in dom_init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/tests/ISOMIP+/MY_SRC/istate.F90

    r13295 r13874  
    9999            CALL dta_tsd( nit000, 'ini', ts(:,:,:,:,Kbb) )       ! read 3D T and S data at nit000 
    100100            ! 
    101             ssh(:,:,Kbb)   = 0._wp               ! set the ocean at rest 
    102             IF( ll_wd ) THEN 
    103                ssh(:,:,Kbb) =  -ssh_ref  ! Added in 30 here for bathy that adds 30 as Iterative test CEOD  
    104                ! 
    105                ! Apply minimum wetdepth criterion 
    106                ! 
    107                DO_2D( 1, 1, 1, 1 ) 
    108                   IF( ht_0(ji,jj) + ssh(ji,jj,Kbb)  < rn_wdmin1 ) THEN 
    109                      ssh(ji,jj,Kbb) = tmask(ji,jj,1)*( rn_wdmin1 - (ht_0(ji,jj)) ) 
    110                   ENDIF 
    111                END_2D 
    112             ENDIF  
     101!!st            ssh(:,:,Kbb)   = 0._wp               ! set the ocean at rest 
     102!!st            IF( ll_wd ) THEN 
     103!!st               ssh(:,:,Kbb) =  -ssh_ref  ! Added in 30 here for bathy that adds 30 as Iterative test CEOD  
     104!!st               ! 
     105!!st               ! Apply minimum wetdepth criterion 
     106!!st               ! 
     107!!st               DO_2D( 1, 1, 1, 1 ) 
     108!!st                  IF( ht_0(ji,jj) + ssh(ji,jj,Kbb)  < rn_wdmin1 ) THEN 
     109!!st                     ssh(ji,jj,Kbb) = tmask(ji,jj,1)*( rn_wdmin1 - (ht_0(ji,jj)) ) 
     110!!st                  ENDIF 
     111!!st               END_2D 
     112!!st            ENDIF  
    113113            uu  (:,:,:,Kbb) = 0._wp 
    114114            vv  (:,:,:,Kbb) = 0._wp   
    115115            ! 
    116116         ELSE                                 ! user defined initial T and S 
    117             CALL usr_def_istate( gdept(:,:,:,Kbb), tmask, ts(:,:,:,:,Kbb), uu(:,:,:,Kbb), vv(:,:,:,Kbb), ssh(:,:,Kbb)  )          
     117            CALL usr_def_istate( gdept(:,:,:,Kbb), tmask, ts(:,:,:,:,Kbb), uu(:,:,:,Kbb), vv(:,:,:,Kbb) ) 
     118            CALL usr_def_istate_ssh(tmask, ssh(:,:,Kbb) )          
    118119         ENDIF 
    119120         ts  (:,:,:,:,Kmm) = ts (:,:,:,:,Kbb)       ! set now values from to before ones 
    120          ssh (:,:,Kmm)     = ssh(:,:,Kbb)    
     121!!st         ssh (:,:,Kmm)     = ssh(:,:,Kbb)    
    121122         uu   (:,:,:,Kmm)   = uu  (:,:,:,Kbb) 
    122123         vv   (:,:,:,Kmm)   = vv  (:,:,:,Kbb) 
Note: See TracChangeset for help on using the changeset viewer.