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 1274 for trunk/NEMO/OPA_SRC/SBC/sbcflx.F90 – NEMO

Ignore:
Timestamp:
2009-01-19T16:32:54+01:00 (15 years ago)
Author:
smasson
Message:

bugfix in sbcflx, see ticket:294

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbcflx.F90

    r1236 r1274  
    143143      !                                          ! input fields at the current time-step 
    144144 
    145       ! set the ocean fluxes from read fields 
     145      IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN 
     146         ! 
     147         ! set the ocean fluxes from read fields 
    146148!CDIR COLLAPSE 
    147       DO jj = 1, jpj 
    148          DO ji = 1, jpi 
    149             utau(ji,jj) = sf(jp_utau)%fnow(ji,jj) 
    150             vtau(ji,jj) = sf(jp_vtau)%fnow(ji,jj) 
    151             qns (ji,jj) = sf(jp_qtot)%fnow(ji,jj) - sf(jp_qsr)%fnow(ji,jj) 
    152             qsr (ji,jj) = sf(jp_qsr )%fnow(ji,jj) 
    153             emp (ji,jj) = sf(jp_emp )%fnow(ji,jj) 
     149         DO jj = 1, jpj 
     150            DO ji = 1, jpi 
     151               utau(ji,jj) = sf(jp_utau)%fnow(ji,jj) 
     152               vtau(ji,jj) = sf(jp_vtau)%fnow(ji,jj) 
     153               qns (ji,jj) = sf(jp_qtot)%fnow(ji,jj) - sf(jp_qsr)%fnow(ji,jj) 
     154               qsr (ji,jj) = sf(jp_qsr )%fnow(ji,jj) 
     155               emp (ji,jj) = sf(jp_emp )%fnow(ji,jj) 
     156            END DO 
    154157         END DO 
    155       END DO 
    156  
    157       ! Initialization of emps (when no ice model) 
    158       emps(:,:) = emp (:,:)  
    159  
    160       ! Estimation of wind speed as a function of wind stress ( |tau|=rhoa*Cd*|U|^2 ) 
    161       CALL sbc_tau2wnd 
    162  
    163       ! control print (if less than 100 time-step asked) 
    164       IF( nitend-nit000 <= 100 .AND. lwp ) THEN 
    165          WRITE(numout,*)  
    166          WRITE(numout,*) '        read daily momentum, heat and freshwater fluxes OK' 
    167          DO jf = 1, jpfld 
    168             IF( jf == jp_utau .OR. jf == jp_vtau )   zfact =     1. 
    169             IF( jf == jp_qtot .OR. jf == jp_qsr  )   zfact =     0.1 
    170             IF( jf == jp_emp                     )   zfact = 86400. 
     158          
     159         ! Initialization of emps (when no ice model) 
     160         emps(:,:) = emp (:,:)  
     161          
     162         ! Estimation of wind speed as a function of wind stress ( |tau|=rhoa*Cd*|U|^2 ) 
     163         CALL sbc_tau2wnd 
     164          
     165         ! control print (if less than 100 time-step asked) 
     166         IF( nitend-nit000 <= 100 .AND. lwp ) THEN 
    171167            WRITE(numout,*)  
    172             WRITE(numout,*) ' day: ', ndastp , TRIM(sf(jf)%clvar), ' * ', zfact 
    173             CALL prihre( sf(jf)%fnow, jpi, jpj, 1, jpi, 20, 1, jpj, 10, zfact, numout ) 
    174          END DO 
    175          CALL FLUSH(numout) 
     168            WRITE(numout,*) '        read daily momentum, heat and freshwater fluxes OK' 
     169            DO jf = 1, jpfld 
     170               IF( jf == jp_utau .OR. jf == jp_vtau )   zfact =     1. 
     171               IF( jf == jp_qtot .OR. jf == jp_qsr  )   zfact =     0.1 
     172               IF( jf == jp_emp                     )   zfact = 86400. 
     173               WRITE(numout,*)  
     174               WRITE(numout,*) ' day: ', ndastp , TRIM(sf(jf)%clvar), ' * ', zfact 
     175               CALL prihre( sf(jf)%fnow, jpi, jpj, 1, jpi, 20, 1, jpj, 10, zfact, numout ) 
     176            END DO 
     177            CALL FLUSH(numout) 
     178         ENDIF 
     179         ! 
    176180      ENDIF 
    177181      ! 
Note: See TracChangeset for help on using the changeset viewer.