Changeset 4875 for palm/trunk


Ignore:
Timestamp:
Feb 17, 2021 11:56:22 AM (4 years ago)
Author:
scharf
Message:

bugfix for interpolating external radiation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/radiation_model_mod.f90

    r4874 r4875  
    2727! -----------------
    2828! $Id$
     29! bugfix for interpolating external radiation on first timestep
     30!
     31! 4874 2021-02-15 17:21:20Z raasch
    2932! bugfix for writing restart radiation arrays with MPI-IO
    3033!
     
    34563459! Description:
    34573460! ------------
    3458 !> A simple clear sky radiation model
     3461!> Use external radiative forcing (short- and longwave downwelling radiation) from a driver
    34593462!--------------------------------------------------------------------------------------------------!
    34603463 SUBROUTINE radiation_external
     
    34943497
    34953498       fac_dt = ( time_since_reference_point - time_rad_f%var1d(tm) + dt_3d ) /                    &
    3496                 ( time_rad_f%var1d(t)  - time_rad_f%var1d(tm) )
     3499                MAX( TINY( 1._wp ), ( time_rad_f%var1d(t)  - time_rad_f%var1d(tm) ) )
    34973500       fac_dt = MIN( 1.0_wp, fac_dt )
    34983501    ENDIF
Note: See TracChangeset for help on using the changeset viewer.