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 8907 for branches/UKMO – NEMO

Changeset 8907 for branches/UKMO


Ignore:
Timestamp:
2017-12-06T09:16:26+01:00 (6 years ago)
Author:
deazer
Message:

Modified implicit bfriciton to only be done in WAD cases
This aids bit comparison tests to show WAD code does not effect CONFIGS,
unless you want implicit bfriction.

Location:
branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/DYN
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90

    r8870 r8907  
    980980         ! Add bottom stresses: 
    981981!jth do implicitly instead 
    982 !         zu_trd(:,:) = zu_trd(:,:) + bfrua(:,:) * un_e(:,:) * hur_e(:,:) 
    983 !         zv_trd(:,:) = zv_trd(:,:) + bfrva(:,:) * vn_e(:,:) * hvr_e(:,:) 
     982         IF ( .NOT. ln_wd_il  .and. .NOT. ln_wd_dl) THEN ! Revert to explicit for bit comparison tests in non wad runs 
     983            zu_trd(:,:) = zu_trd(:,:) + bfrua(:,:) * un_e(:,:) * hur_e(:,:) 
     984            zv_trd(:,:) = zv_trd(:,:) + bfrva(:,:) * vn_e(:,:) * hvr_e(:,:) 
     985         ENDIF  
    984986         ! 
    985987         ! Add top stresses: 
     
    10291031  
    10301032!jth implicit bottom friction: 
    1031                ua_e(ji,jj) =  ua_e(ji,jj) /(1.0 -   rdtbt * bfrua(ji,jj) * hur_e(ji,jj)) 
    1032                va_e(ji,jj) =  va_e(ji,jj) /(1.0 -   rdtbt * bfrva(ji,jj) * hvr_e(ji,jj)) 
     1033                  IF (  ln_wd_il  .or. ln_wd_dl ) THEN ! revert to explicit for bit comparison tests in non wad runs 
     1034                     ua_e(ji,jj) =  ua_e(ji,jj) /(1.0 -   rdtbt * bfrua(ji,jj) * hur_e(ji,jj)) 
     1035                     va_e(ji,jj) =  va_e(ji,jj) /(1.0 -   rdtbt * bfrva(ji,jj) * hvr_e(ji,jj)) 
     1036                  ENDIF 
    10331037 
    10341038               END DO 
  • branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/DYN/wet_dry.F90

    r8870 r8907  
    3434   !! --------------------------------------------------------------------- 
    3535 
    36    REAL(wp), PUBLIC, ALLOCATABLE, DIMENSION(:,:) ::   wdmask         !: u- and v- limiter  
    37                                                                      !  (can include negative depths) 
    38    REAL(wp), PUBLIC, ALLOCATABLE, DIMENSION(:,:) ::   wdramp, wdrampu, wdrampv ! for hpg limiting 
     36   REAL(wp), PUBLIC, ALLOCATABLE, DIMENSION(:,:) ::   wdmask         !: u- and v- limiter  (can include negative depths) 
     37   REAL(wp), PUBLIC, ALLOCATABLE, DIMENSION(:,:) ::   wdramp, wdrampu, wdrampv !: for hpg limiting 
    3938 
    4039   LOGICAL,  PUBLIC  ::   ln_wd_il    !: Wetting/drying il activation switch (T:on,F:off) 
     
    4342   REAL(wp), PUBLIC  ::   rn_wdmin1   !: minimum water depth on dried cells 
    4443   REAL(wp), PUBLIC  ::   rn_wdmin2   !: tolerance of minimum water depth on dried cells 
    45    REAL(wp), PUBLIC  ::   rn_wdld     !: land elevation below which wetting/drying  
    46                                            !: will be considered 
     44   REAL(wp), PUBLIC  ::   rn_wdld     !: land elevation below which wetting/drying will be considered 
    4745   INTEGER , PUBLIC  ::   nn_wdit     !: maximum number of iteration for W/D limiter 
    4846   LOGICAL,  PUBLIC  ::   ln_wd_dl_bc !: DL scheme: True implies 3D velocities are set to the barotropic values at points  
Note: See TracChangeset for help on using the changeset viewer.