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 2210 for branches/dev_r2174_DCY/NEMO/OPA_SRC/SBC/sbcflx.F90 – NEMO

Ignore:
Timestamp:
2010-10-12T11:54:28+02:00 (14 years ago)
Author:
smasson
Message:

bugfix on diurnal cycle in dev_r2174_DCY, see ticket:730

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2174_DCY/NEMO/OPA_SRC/SBC/sbcflx.F90

    r2188 r2210  
    123123      ENDIF 
    124124 
    125                        CALL fld_read( kt, nn_fsbc, sf )       ! input fields provided at the current time-step 
    126        
    127       IF( ln_dm2dc )   CALL sbc_dcy( kt , sf(jp_qsr)%fnow )   ! modify now Qsr to include the diurnal cycle 
    128  
    129       IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN                    ! update ocean fluxes at each SBC frequency 
     125      CALL fld_read( kt, nn_fsbc, sf )                            ! input fields provided at the current time-step 
     126      
     127      IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN                        ! update ocean fluxes at each SBC frequency 
     128         IF( ln_dm2dc ) THEN   ;   qsr(:,:) = sbc_dcy( kt, sf(jp_qsr)%fnow )   ! modify now Qsr to include the diurnal cycle 
     129         ELSE                  ;   qsr(:,:) = sf(jp_qsr)%fnow(:,:) 
     130         ENDIF 
    130131!CDIR COLLAPSE 
    131132         DO jj = 1, jpj                                           ! set the ocean fluxes from read fields 
     
    133134               utau(ji,jj) = sf(jp_utau)%fnow(ji,jj) 
    134135               vtau(ji,jj) = sf(jp_vtau)%fnow(ji,jj) 
    135                qns (ji,jj) = sf(jp_qtot)%fnow(ji,jj) - sf(jp_qsr)%fnow(ji,jj) 
    136                qsr (ji,jj) = sf(jp_qsr )%fnow(ji,jj) 
     136               qns (ji,jj) = sf(jp_qtot)%fnow(ji,jj) - qsr(ji,jj) 
    137137               emp (ji,jj) = sf(jp_emp )%fnow(ji,jj) 
    138138            END DO 
Note: See TracChangeset for help on using the changeset viewer.