Ignore:
Timestamp:
Oct 5, 2017, 12:15:17 PM (7 years ago)
Author:
jvatant
Message:

+ Found a bug for the limit cases in disr_haze leading to uninit. value.

Fixed by init to zero but should be relooked at.

+ Also added omp instructions in disr_haze
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/optcv.F90

    r1788 r1792  
    9494      indv = -9999 ! this initial value means "to be calculated"
    9595  ENDIF
     96 
     97  ! Some initialisation beacause there's a pb with disr_haze at the limits (nw=1)
     98  ! I should check this - For now we set vars to zero : better than nans - JVO 2017
     99 
     100  dhaze_t(:,:) = 0.
     101  ssa_t(:,:) = 0.
     102  asf_t(:,:) = 0.
     103
    96104
    97105  !=======================================================================
     
    135143
    136144        !================= Titan customisation ========================================
    137         call disr_haze(dz(k),plev(k),wnov(nw),dhaze_T(k,nw),SSA_T(k,nw),ASF_T(k,nw))
     145        call disr_haze(dz(k),plev(k),wnov(nw),dhaze_T(k,nw),SSA_T(k,nw),ASF_T(k,nw))
    138146        ! =============================================================================
    139 
     147         
    140148        DRAYAER = TRAY(K,NW)
    141149        !     DRAYAER is Tau RAYleigh scattering, plus AERosol opacity
Note: See TracChangeset for help on using the changeset viewer.