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 15145 for NEMO/trunk/src/OCE/USR/usrdef_sbc.F90 – NEMO

Ignore:
Timestamp:
2021-07-26T18:16:45+02:00 (3 years ago)
Author:
smasson
Message:

trunk: pass all sette tests in debug with nn_hls = 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/USR/usrdef_sbc.F90

    r14433 r15145  
    110110      ztrp= - 40.e0        ! retroaction term on heat fluxes (W/m2/K) 
    111111      zconv = 3.16e-5      ! convertion factor: 1 m/yr => 3.16e-5 mm/s 
    112       DO_2D( 1, 1, 1, 1 ) 
     112      DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )   ! emp and rnf used in sshwzv over the whole domain 
    113113         ! domain from 15 deg to 50 deg between 27 and 28  degC at 15N, -3 
    114114         ! and 13 degC at 50N 53.5 + or - 11 = 1/4 period : 
     
    136136 
    137137      ! freshwater (mass flux) and update of qns with heat content of emp 
    138       emp (:,:) = emp(:,:) - zsumemp * tmask(:,:,1)        ! freshwater flux (=0 in domain average) 
    139       sfx (:,:) = 0.0_wp                                   ! no salt flux 
    140       qns (:,:) = qns(:,:) - emp(:,:) * sst_m(:,:) * rcp   ! evap and precip are at SST 
     138      DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )   ! emp used in sshwzv over the whole domain 
     139         emp (ji,jj) = emp(ji,jj) - zsumemp * tmask(ji,jj,1)          ! freshwater flux (=0 in domain average) 
     140         sfx (ji,jj) = 0.0_wp                                         ! no salt flux 
     141         qns (ji,jj) = qns(ji,jj) - emp(ji,jj) * sst_m(ji,jj) * rcp   ! evap and precip are at SST 
     142      END_2D 
    141143 
    142144 
     
    181183         wndm(ji,jj) = SQRT( zmod * zcoef ) 
    182184      END_2D 
    183       CALL lbc_lnk( 'usrdef_sbc', taum(:,:), 'T', 1.0_wp , wndm(:,:), 'T', 1.0_wp ) 
    184185 
    185186      ! ---------------------------------- ! 
Note: See TracChangeset for help on using the changeset viewer.