Changeset 8981
- Timestamp:
- 2017-12-11T18:38:08+01:00 (7 years ago)
- Location:
- branches/UKMO/ROMS_WAD_7832/NEMOGCM
- Files:
-
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/ROMS_WAD_7832/NEMOGCM/CONFIG/SHARED/namelist_ref
r8870 r8981 75 75 cn_domcfg = "domain_cfg" ! domain configuration filename 76 76 ! 77 ln_write_cfg= . false. ! (=T) create the domain configuration file77 ln_write_cfg= .true. ! (=T) create the domain configuration file 78 78 cn_domcfg_out = "domain_cfg_out" ! newly created domain configuration filename 79 79 ! -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/CONFIG/TEST_CASES/WAD/MY_SRC/usrdef_istate.F90
r8870 r8981 170 170 END SELECT 171 171 172 ! subtract the height of z=0 above the geoid (this allows z = 0 to be higher than all points that may become wet)173 pssh(:,:) = pssh(:,:) - rn_ssh_ref174 172 175 173 ! -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/CONFIG/TEST_CASES/WAD/MY_SRC/usrdef_zgr.F90
r8977 r8981 19 19 & mj0, mj1, glamt, gphit ! ocean space and time domain 20 20 USE usrdef_nam ! User defined : namelist variables 21 USE wet_dry , ONLY: rn_wdmin1, rn_wdmin2, rn_wdld, & 22 & rn_ht_0, rn_ssh_ref ! Wetting and drying 21 USE wet_dry , ONLY: rn_wdmin1, rn_wdmin2, rn_wdld ! Wetting and drying 23 22 ! 24 23 USE in_out_manager ! I/O manager … … 234 233 END IF 235 234 236 ! increase the depth of the bathymetry by rn_ssh_ref and rn_ht_0237 !zht(:,:) = zht(:,:) + rn_ssh_ref + rn_ht_0238 235 239 236 ! at u-point: averaging zht -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/BDY/bdydyn2d.F90
r8956 r8981 171 171 ij = idx%nbj(jb,igrd) 172 172 IF( ll_wd ) THEN 173 spgu(ii, ij) = dta%ssh(jb) - rn_ssh_ref173 spgu(ii, ij) = dta%ssh(jb) - ssh_ref 174 174 ELSE 175 175 spgu(ii, ij) = dta%ssh(jb) -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90
r8956 r8981 155 155 156 156 IF( ll_wd ) THEN 157 CALL iom_put( "ssh" , sshn+rn_ssh_ref) ! sea surface height (brought back to the reference used for wetting and drying)157 CALL iom_put( "ssh" , (sshn+ssh_ref)*tmask(:,:,1) ) ! sea surface height (brought back to the reference used for wetting and drying) 158 158 ELSE 159 159 CALL iom_put( "ssh" , sshn ) ! sea surface height -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/DOM/domvvl.F90
r8956 r8981 888 888 ELSE 889 889 ! if not test case 890 sshn(:,:) = - rn_ssh_ref891 sshb(:,:) = - rn_ssh_ref890 sshn(:,:) = -ssh_ref 891 sshb(:,:) = -ssh_ref 892 892 893 893 DO jj = 1, jpj 894 894 DO ji = 1, jpi 895 IF( ht_0(ji,jj)- rn_ssh_ref < rn_wdmin1 ) THEN ! if total depth is less than min depth895 IF( ht_0(ji,jj)-ssh_ref < rn_wdmin1 ) THEN ! if total depth is less than min depth 896 896 897 897 sshb(ji,jj) = rn_wdmin1 - (ht_0(ji,jj) ) … … 905 905 ! Adjust vertical metrics for all wad 906 906 DO jk = 1, jpk 907 e3t_n(:,:,jk) = e3t_0(:,:,jk) * ( ht_0(:,:) - rn_ht_0+ sshn(:,:) ) &907 e3t_n(:,:,jk) = e3t_0(:,:,jk) * ( ht_0(:,:) + sshn(:,:) ) & 908 908 & / ( ht_0(:,:) + 1._wp - ssmask(:,:) ) * tmask(:,:,jk) & 909 909 & + e3t_0(:,:,jk) * ( 1._wp - tmask(:,:,jk) ) -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90
r8956 r8981 30 30 USE usrdef_zgr ! user defined vertical coordinate system 31 31 USE depth_e3 ! depth <=> e3 32 USE wet_dry, ONLY: ll_wd, rn_ssh_ref ! Wetting and drying32 USE wet_dry, ONLY: ll_wd, ssh_ref ! Wetting and drying 33 33 ! 34 34 USE in_out_manager ! I/O manager … … 259 259 ! 260 260 ! reference depth for negative bathy (wetting and drying only) 261 IF( ll_wd ) CALL iom_get( inum, 'rn_wd_ref_depth' , rn_ssh_ref )261 IF( ll_wd ) CALL iom_get( inum, 'rn_wd_ref_depth' , ssh_ref ) 262 262 ! 263 263 CALL iom_close( inum ) -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/DYN/wet_dry.F90
r8977 r8981 48 48 !: where the flow is from wet points on less than half the barotropic sub-steps 49 49 LOGICAL, PUBLIC :: ln_wd_dl_rmp !: use a ramp for the dl flux limiter between 2 rn_wdmin1 and rn_wdmin1 (rather than a cut-off at rn_wdmin1) 50 REAL(wp), PUBLIC :: rn_ssh_ref !: height of z=0 with respect to the geoid; 51 REAL(wp), PUBLIC :: rn_ht_0 !: the height at which ht_0 = 0 50 REAL(wp), PUBLIC :: ssh_ref !: height of z=0 with respect to the geoid; 52 51 53 52 LOGICAL, PUBLIC :: ll_wd !: Wetting/drying activation switch if either ln_wd_il or ln_wd_dl … … 70 69 !!---------------------------------------------------------------------- 71 70 NAMELIST/namwad/ ln_wd_il, ln_wd_dl, rn_wdmin0, rn_wdmin1, rn_wdmin2, rn_wdld, & 72 & nn_wdit, ln_wd_dl_bc, ln_wd_dl_rmp , rn_ht_071 & nn_wdit, ln_wd_dl_bc, ln_wd_dl_rmp 73 72 74 73 INTEGER :: ios ! Local integer output status for namelist read … … 100 99 WRITE(numout,*) ' T => baroclinic u,v=0 at dry pts: ln_wd_dl_bc = ', ln_wd_dl_bc 101 100 WRITE(numout,*) ' use a ramp for rwd limiter: ln_wd_dl_rwd_rmp = ', ln_wd_dl_rmp 102 WRITE(numout,*) ' the height (z) at which ht_0=0: rn_ht_0 = ', rn_ht_0101 103 102 ENDIF 103 IF( .NOT. ln_read_cfg ) THEN 104 WRITE(numout,*) ' No configuration file so seting ssh_ref to zero ' 105 ssh_ref=0.0 106 ENDIF 107 104 108 r_rn_wdmin1=1/rn_wdmin1 105 109 ll_wd = .FALSE. … … 178 182 179 183 IF( tmask(ji, jj, 1) < 0.5_wp ) CYCLE ! we don't care about land cells 180 IF( ht_0(ji,jj) - rn_ssh_ref > zdepwd ) CYCLE ! and cells which are unlikely to dry184 IF( ht_0(ji,jj) - ssh_ref > zdepwd ) CYCLE ! and cells which are unlikely to dry 181 185 182 186 zflxp(ji,jj) = max(zflxu(ji,jj), 0._wp) - min(zflxu(ji-1,jj), 0._wp) + & -
branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/stpctl.F90
r8977 r8981 22 22 USE lib_mpp ! distributed memory computing 23 23 USE lib_fortran ! Fortran routines library 24 USE wet_dry, ONLY: ll_wd, rn_ssh_ref ! reference depth for negative bathy24 USE wet_dry, ONLY: ll_wd, ssh_ref ! reference depth for negative bathy 25 25 26 26 IMPLICIT NONE … … 152 152 DO ji = 1, jpi 153 153 IF( ll_wd ) THEN 154 IF( tmask(ji,jj,1) == 1) zsshmax = MAX( zsshmax, ABS(sshn(ji,jj)+ rn_ssh_ref) )154 IF( tmask(ji,jj,1) == 1) zsshmax = MAX( zsshmax, ABS(sshn(ji,jj)+ssh_ref) ) 155 155 ELSE 156 156 IF( tmask(ji,jj,1) == 1) zsshmax = MAX( zsshmax, ABS(sshn(ji,jj)) )
Note: See TracChangeset
for help on using the changeset viewer.