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/sbcblk.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/sbcblk.F90

    r14719 r15613  
    4040   USE fldread        ! read input fields 
    4141   USE sbc_oce        ! Surface boundary condition: ocean fields 
     42   USE trc_oce         ! share SMS/Ocean variables 
    4243   USE cyclone        ! Cyclone 10m wind form trac of cyclone centres 
    4344   USE sbcdcy         ! surface boundary condition: diurnal cycle 
     
    441442      ELSE                  ;   qsr(:,:) = zztmp *          sf(jp_qsr)%fnow(:,:,1)   * tmask(:,:,1) 
    442443      ENDIF 
     444 
     445#if defined key_top 
     446      IF( ln_trcdc2dm )  THEN      !  diurnal cycle in TOP 
     447         IF( ln_dm2dc )  THEN  ;  qsr_mean(:,:) = zztmp * sf(jp_qsr)%fnow(:,:,1)  * tmask(:,:,1) 
     448         ELSE                  ;  ncpl_qsr_freq = sf(jp_qsr)%freqh * 3600 !   qsr_mean will be computed in TOP 
     449         ENDIF 
     450      ENDIF 
     451#endif 
    443452 
    444453      zqlw(:,:) = (  sf(jp_qlw)%fnow(:,:,1) - Stef * zst(:,:)*zst(:,:)*zst(:,:)*zst(:,:)  ) * tmask(:,:,1)   ! Long  Wave 
Note: See TracChangeset for help on using the changeset viewer.