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 8544 for branches/UKMO/ROMS_WAD_7832/NEMOGCM/CONFIG/CS15mini/MY_SRC/domvvl.F90 – NEMO

Ignore:
Timestamp:
2017-09-19T17:41:15+02:00 (7 years ago)
Author:
deazer
Message:

Added reference level (above all potential wet points) to avoid negative depth bathymetry as a work around.
Require reference level to be emedded into the domain configuration file
uses ht_0 instead of ht_wd. This si still in the code but should be removed in time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/ROMS_WAD_7832/NEMOGCM/CONFIG/CS15mini/MY_SRC/domvvl.F90

    r8403 r8544  
    889889                  vn   (:,:,:)   = vb  (:,:,:) 
    890890               ELSEIF( ln_wd .or. ln_rwd   ) THEN ! if not test case 
    891                   sshb(:,:) = 0.0_wp ! slwa 
    892                   sshn(:,:) = 0.0_wp ! slwa 
     891                  sshn(:,:) = -rn_ssh_ref 
     892                  sshb(:,:) = -rn_ssh_ref 
    893893 
    894894                  DO jj = 1, jpj 
    895895                     DO ji = 1, jpi 
    896                         IF( ht_wd(ji,jj) <=  rn_wdmin1 ) THEN ! if total depth is less than min depth 
    897  
    898                            sshb(ji,jj) = rn_wdmin1 - ht_wd(ji,jj)        
    899                            sshn(ji,jj) = rn_wdmin1 - ht_wd(ji,jj) 
    900                            ssha(ji,jj) = rn_wdmin1 - ht_wd(ji,jj) 
     896                        IF( ht_0(ji,jj)-rn_ssh_ref <  rn_wdmin1 ) THEN ! if total depth is less than min depth 
     897 
     898                           sshb(ji,jj) = rn_wdmin1 - (ht_0(ji,jj) ) 
     899                           sshn(ji,jj) = rn_wdmin1 - (ht_0(ji,jj) ) 
     900                           ssha(ji,jj) = rn_wdmin1 - (ht_0(ji,jj) ) 
    901901                        ENDIF 
    902902                     ENDDO 
Note: See TracChangeset for help on using the changeset viewer.