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 15613 for NEMO/releases/r4.0/r4.0-HEAD/src/OCE/SBC/sbcflx.F90 – NEMO

Ignore:
Timestamp:
2021-12-22T10:35:54+01:00 (2 years ago)
Author:
cetlod
Message:

r4.0-HEAD : bugfix to better manage the diurnal cycle in TOP, see ticket #2739

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/releases/r4.0/r4.0-HEAD/src/OCE/SBC/sbcflx.F90

    r13484 r15613  
    1515   USE dom_oce         ! ocean space and time domain 
    1616   USE sbc_oce         ! surface boundary condition: ocean fields 
     17   USE trc_oce         ! share SMS/Ocean variables 
    1718   USE sbcdcy          ! surface boundary condition: diurnal cycle on qsr 
    1819   USE phycst          ! physical constants 
     
    132133         ELSE                  ;   qsr(:,:) =          sf(jp_qsr)%fnow(:,:,1)   * tmask(:,:,1) 
    133134         ENDIF 
     135#if defined key_top 
     136      IF( ln_trcdc2dm )  THEN      !  diurnal cycle in TOP 
     137         IF( ln_dm2dc )  THEN  ;  qsr_mean(:,:) = sf(jp_qsr)%fnow(:,:,1)  * tmask(:,:,1) 
     138         ELSE                  ;  ncpl_qsr_freq = sf(jp_qsr)%freqh * 3600 !  qsr_mean will be computed in TOP 
     139         ENDIF 
     140      ENDIF 
     141#endif          
    134142         DO jj = 1, jpj                                           ! set the ocean fluxes from read fields 
    135143            DO ji = 1, jpi 
Note: See TracChangeset for help on using the changeset viewer.