Ignore:
Timestamp:
Sep 9, 2020 1:43:47 PM (4 years ago)
Author:
pavelkrc
Message:

Fix multiple issues with radiation call times

File:
1 edited

Legend:

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

    r4668 r4669  
    2525! -----------------
    2626! $Id$
     27! - Fix missing call of radiation after spinup
     28! - Fix calculation of force_radiation_call
     29! - Fix calculation of radiation times
     30!
     31! 4668 2020-09-09 13:00:16Z pavelkrc
    2732! Improve debug messages during timestepping
    2833!
     
    11941199!
    11951200!--    If required, calculate radiative fluxes and heating rates
    1196        IF ( radiation  .AND.  time_since_reference_point > skip_time_do_radiation )  THEN
     1201       IF ( radiation  .AND.  time_since_reference_point >= skip_time_do_radiation )  THEN
    11971202
    11981203          time_radiation = time_radiation + dt_3d
     
    12021207             CALL cpu_log( log_point(50), 'radiation', 'start' )
    12031208
    1204              IF ( .NOT. force_radiation_call )  THEN
     1209             IF ( time_radiation >= dt_radiation )  THEN
    12051210                time_radiation = time_radiation - dt_radiation
    12061211             ENDIF
     
    12111216!--          solar positions
    12121217             time_since_reference_point_save = time_since_reference_point
    1213              time_since_reference_point = REAL( FLOOR( time_since_reference_point /             &
    1214                                                        dt_radiation ), wp ) * dt_radiation
     1218             time_since_reference_point = time_since_reference_point -                            &
     1219                                          MODULO(time_since_reference_point, dt_radiation)
    12151220
    12161221             CALL radiation_control
     
    12251230!--          Return the current time to its original value
    12261231             time_since_reference_point = time_since_reference_point_save
     1232!
     1233!--          Reset forcing of radiation call
     1234             force_radiation_call = .FALSE.
    12271235
    12281236             CALL cpu_log( log_point(50), 'radiation', 'stop' )
Note: See TracChangeset for help on using the changeset viewer.