Ignore:
Timestamp:
Dec 28, 2018 5:58:49 PM (5 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/data_output_3d.f90

    r3637 r3646  
    2525! -----------------
    2626! $Id$
     27! Bugfix: use time_since_reference_point instead of simulated_time (relevant
     28! when using wall/soil spinup)
     29!
     30! 3637 2018-12-20 01:51:36Z knoop
    2731! Implementation of the PALM module interface
    2832!
     
    255259               io_blocks, io_group, land_surface, message_string,              &
    256260               ntdim_3d, nz_do3d,  ocean_mode, plant_canopy,                   &
    257                psolver, salsa, simulated_time, time_since_reference_point,     &
     261               psolver, salsa, time_since_reference_point,                     &
    258262               urban_surface, varnamelength
    259263
     
    355359    IF ( netcdf_data_format > 4 )  THEN
    356360       IF ( do3d_time_count(av) + 1 > ntdim_3d(av) )  THEN
    357           WRITE ( message_string, * ) 'Output of 3d data is not given at t=',  &
    358                                       simulated_time, '&because the maximum ', &
    359                                       'number of output time levels is ',      &
     361          WRITE ( message_string, * ) 'Output of 3d data is not given at t=',               &
     362                                      time_since_reference_point, 's because the maximum ', &
     363                                      'number of output time levels is ',                   &
    360364                                      'exceeded.'
    361365          CALL message( 'data_output_3d', 'PA0387', 0, 1, 0, 6, 0 )
     
    447451          CASE ( 'pc' )  ! particle concentration (requires ghostpoint exchange)
    448452             IF ( av == 0 )  THEN
    449                 IF ( simulated_time >= particle_advection_start )  THEN
     453                IF ( time_since_reference_point >= particle_advection_start )  THEN
    450454                   tend = prt_count
    451455                ELSE
     
    470474          CASE ( 'pr' )  ! mean particle radius (effective radius)
    471475             IF ( av == 0 )  THEN
    472                 IF ( simulated_time >= particle_advection_start )  THEN
     476                IF ( time_since_reference_point >= particle_advection_start )  THEN
    473477                   DO  i = nxl, nxr
    474478                      DO  j = nys, nyn
     
    585589          CASE ( 'ql_vp' )
    586590             IF ( av == 0 )  THEN
    587                 IF ( simulated_time >= particle_advection_start )  THEN
     591                IF ( time_since_reference_point >= particle_advection_start )  THEN
    588592                   DO  i = nxl, nxr
    589593                      DO  j = nys, nyn
Note: See TracChangeset for help on using the changeset viewer.