Ignore:
Timestamp:
Dec 28, 2018 5:58:49 PM (6 years ago)
Author:
kanani
Message:

Bugfix: replace simulated_time by time_since_reference_point where required

File:
1 edited

Legend:

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

    r3643 r3646  
    2727! -----------------
    2828! $Id$
     29! Bugfix: use time_since_reference_point instead of simulated_time (relevant
     30! when using wall/soil spinup)
     31!
     32! 3643 2018-12-24 13:16:19Z knoop
    2933! Bugfix: set found logical correct in chem_data_output_2d
    3034!
     
    19231927    USE statistics,                                                          &
    19241928         ONLY:  weight_pres
    1925     USE control_parameters,                                                 &
    1926          ONLY:  dt_3d, intermediate_timestep_count, simulated_time
     1929    USE control_parameters,                                                  &
     1930         ONLY:  dt_3d, intermediate_timestep_count, time_since_reference_point
    19271931
    19281932    IMPLICIT NONE
     
    20142018
    20152019       IF(maxval(rcntrl) > 0.0)   THEN    ! Only if rcntrl is set
    2016           IF( simulated_time <= 2*dt_3d)  THEN
     2020          IF( time_since_reference_point <= 2*dt_3d)  THEN
    20172021             rcntrl_local = 0
    2018              !
    2019              !--   todo: remove (kanani)
    2020              !                  WRITE(9,'(a,2f10.3)') 'USE Default rcntrl in the first steps ',simulated_time,dt_3d
    20212022          ELSE
    20222023             rcntrl_local = rcntrl
Note: See TracChangeset for help on using the changeset viewer.