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 – NEMO

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

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

Location:
NEMO/releases/r4.0/r4.0-HEAD/src/OCE/SBC
Files:
3 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 
  • NEMO/releases/r4.0/r4.0-HEAD/src/OCE/SBC/sbccpl.F90

    r14717 r15613  
    11531153         IF( ln_dm2dc .AND. ncpl_qsr_freq /= 86400 )   & 
    11541154            &   CALL ctl_stop( 'sbc_cpl_rcv: diurnal cycle reconstruction (ln_dm2dc) needs daily couping for solar radiation' ) 
    1155          ncpl_qsr_freq = 86400 / ncpl_qsr_freq   ! used by top 
    11561155      ENDIF 
    11571156      ! 
  • 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.