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 9033 for branches/2017/dev_merge_2017/NEMOGCM/TOOLS/DOMAINcfg – NEMO

Ignore:
Timestamp:
2017-12-14T11:29:10+01:00 (6 years ago)
Author:
timgraham
Message:

Commit final files from merge of NEMOGCM and some fixes for waves (taooc renamed tauwoc)

Location:
branches/2017/dev_merge_2017/NEMOGCM/TOOLS/DOMAINcfg
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/DOMAINcfg/namelist_cfg

    r7200 r9033  
    5858   ppkth2      =  999999.              ! 
    5959   ppacr2      =  999999.              ! 
     60   rn_wd_ref_depth   =    0.0          !  Reference Depth for WAD cases (0 all other cases) 
    6061/ 
    6162!----------------------------------------------------------------------- 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/DOMAINcfg/namelist_ref

    r9019 r9033  
    170170   ppkth2      =       48.029893720000 ! 
    171171   ppacr2      =       13.000000000000 ! 
    172 / 
    173 !----------------------------------------------------------------------- 
    174 &namwad        !   Wetting and drying                                   (default F) 
    175 !----------------------------------------------------------------------- 
    176    ln_wd       = .false.   !  T/F activation of wetting and drying 
    177    rn_wdmin1   =  0.1      !  Minimum wet depth on dried cells 
    178    rn_wdmin2   =  0.01     !  Tolerance of min wet depth on dried cells 
    179    rn_wdld     =  20.0     !  Land elevation below which wetting/drying is allowed 
    180    nn_wdit     =  10       !  Max iterations for W/D limiter 
     172   ln_wd       =             .false.   !  T/F activation of wetting and drying 
     173   rn_wd_ref_depth   =    0.0          !  Reference Depth for WAD cases (0 all other cases) 
    181174/ 
    182175!----------------------------------------------------------------------- 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/DOMAINcfg/src/dom_oce.f90

    r6973 r9033  
    3131   !                                    !!* Namelist namdom : time & space domain * 
    3232   INTEGER , PUBLIC ::   nn_bathy        !: = 0/1 ,compute/read the bathymetry file 
     33   LOGICAL   PUBLIC ::   ln_wd           !: Is it a WAD domain? T/F Default T 
     34   REAL(wp), PUBLIC ::   rn_wd_ref_depth !: Reference depth for Wet and Dry 
    3335   REAL(wp), PUBLIC ::   rn_bathy        !: depth of flat bottom (active if nn_bathy=0; if =0 depth=jpkm1) 
    3436   REAL(wp), PUBLIC ::   rn_hmin         !: minimum ocean depth (>0) or minimum number of ocean levels (<0) 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/DOMAINcfg/src/domain.f90

    r7200 r9033  
    160160         &             ppglam0, ppgphi0, ppe1_deg, ppe2_deg, ppe1_m, ppe2_m,                         & 
    161161         &             ppsur, ppa0, ppa1, ppkth, ppacr, ppdzmin, pphmax, ldbletanh,                  & 
    162          &             ppa2, ppkth2, ppacr2 
     162         &             ppa2, ppkth2, ppacr2, rn_wd_ref_depth, ln_wd 
    163163 
    164164 
     
    272272         WRITE(numout,*) '      flag read/compute bathymetry      nn_bathy     = ', nn_bathy 
    273273         WRITE(numout,*) '      Depth (if =0 bathy=jpkm1)         rn_bathy     = ', rn_bathy 
     274         WRITE(numout,*) '      WAD Domain?                       ln_wd        = ', ln_wd 
     275         WRITE(numout,*) '      WAD Reference depth)              rn_wd_ref_depth     = ', rn_wd_ref_depth 
    274276         WRITE(numout,*) '      min depth of the ocean    (>0) or    rn_hmin   = ', rn_hmin 
    275277         WRITE(numout,*) '      min number of ocean level (<0)       ' 
     
    431433      IF( ln_isfcav ) THEN   ;   icav = 1   ;   ELSE   ;   icav = 0   ;   ENDIF 
    432434      CALL iom_rstput( 0, 0, inum, 'ln_isfcav', REAL( icav, wp), ktype = jp_i4 ) 
     435      z2d(:,:) = hbatt(:,:) ! add back on reference height to get appox dep 
     436                                 !this is later corrected for with specified min depth bg user for above greoid 
     437                                 ! WAD points 
     438      !where (z2d   (:,:).lte.1e-5)  z2d(:,:) = -10.0 
     439      where (tmask  (:,:,1).eq.0)  z2d(:,:) = 0.0 
     440      IF( ln_wd ) THEN 
     441          CALL iom_rstput( 0, 0, inum, 'rn_wd_ref_depth'   , rn_wd_ref_depth  ) ! replace this later with variable 
     442          CALL iom_rstput( 0, 0, inum, 'ht_wd', z2d )        !    ht_wd 
     443      ENDIF 
     444 
    433445      ! 
    434446      !                             !==  horizontal mesh  ! 
  • branches/2017/dev_merge_2017/NEMOGCM/TOOLS/DOMAINcfg/src/domzgr.f90

    r8593 r9033  
    19571957         WRITE(numout,*) '        Bottom cell (Zb) (m) = H*rn_zb_a + rn_zb_b' 
    19581958      ENDIF 
    1959  
     1959      ! CEOD 
     1960      ! Add on some reference level to make nagative bathy positive to create 
     1961      ! sensible e3t_0's 
     1962! Can used commented code here to force bathy near open bdy not to have any WAD 
     1963! points 
     1964 
     1965!CEOD MAKE points on the perimeter assuming a bondary is here on shallower than 
     1966!10m so that tide can be specified here. 
     1967!      DO jj = 1, jpj 
     1968!         DO ji = 1, jpi 
     1969!            !CEODIF( mig(ji) <= 2 .or. mjg(jj) <= 2  .or. mig(ji) >= jpiglo-2 .or.  mjg(jj) >=jpjglo-2) then 
     1970!            IF( mig(ji) <= 10   .or. mjg(jj) <=10  .or.  mjg(ji) >=jpiglo-10+1 .or. mjg(jj) >=jpjglo-10+1   ) then 
     1971!               IF( bathy(ji,jj) + rn_wd_ref_depth  > 0.0)   then 
     1972!                  bathy(ji,jj) = max(5.0,bathy(ji,jj)) ! 
     1973!               ENDIF 
     1974!               IF( bathy(ji,jj)  + rn_wd_ref_depth   <= 0.0)   then 
     1975!                  bathy(ji,jj) =  -rn_wd_ref_depth*2._wp ! Make sure it is land 
     1976!               ENDIF 
     1977!            ENDIF 
     1978!         END DO 
     1979!      END DO 
     1980 
     1981      IF( ln_wd) THEN 
     1982         bathy(:,:) = bathy(:,:) + rn_wd_ref_depth !  Arbitrary reference level for WAD, This needs 
     1983      ELSE 
     1984         bathy(:,:) = bathy(:,:)  !  Arbitrary reference level for WAD, This needs 
     1985      ENDIF 
     1986                                                !  to be accounted for in istate in the actual model and bdys etc. 
    19601987      hift(:,:) = rn_sbot_min                     ! set the minimum depth for the s-coordinate 
    19611988      hifu(:,:) = rn_sbot_min 
Note: See TracChangeset for help on using the changeset viewer.