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/usrdef_istate.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/usrdef_istate.F90

    r8403 r8544  
    1414   !!---------------------------------------------------------------------- 
    1515   USE par_oce        ! ocean space and time domain 
     16   USE dom_oce        ! ocean space and time domain 
    1617   USE phycst         ! physical constants 
    1718   USE wet_dry        ! Wetting and drying 
     
    8586 
    8687! subtract the height of z=0 above the geoid (this allows z = 0 to be higher than all points that may become wet)    
    87       pssh(:,:) = pssh(:,:) - rn_ssh_ref 
     88      pssh(:,:) =  -rn_ssh_ref 
    8889 
    8990      ! 
     
    9293      do jj = 1,jpj 
    9394         do ji = 1,jpi 
    94             IF( ht_wd(ji,jj) + pssh(ji,jj) < rn_wdmin1 ) THEN 
    95                pssh(ji,jj) = ptmask(ji,jj,1)*( rn_wdmin1 - ht_wd(ji,jj) ) 
     95            IF( ht_0(ji,jj) + pssh(ji,jj) < rn_wdmin1 ) THEN 
     96               pssh(ji,jj) = ptmask(ji,jj,1)*( rn_wdmin1 - (ht_0(ji,jj)) ) 
    9697            ENDIF 
    9798         end do 
Note: See TracChangeset for help on using the changeset viewer.