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/parin.f90

    r3637 r3646  
    2525! -----------------
    2626! $Id$
     27! Bugfix: for restarts, reset data_output_during_spinup to FALSE to enable
     28! correct calculation of ntdim in check_parameters
     29!
     30! 3637 2018-12-20 01:51:36Z knoop
    2731! Implementation of the PALM module interface
    2832!
     
    893897             max_pr_user = max_pr_user_tmp
    894898          ENDIF
    895 
     899PRINT*, 'data_output_during_spinup 1: ', data_output_during_spinup
    896900!
    897901!--       Activate spinup
     
    904908                ENDIF
    905909                end_time = end_time + spinup_time
    906                 IF ( TRIM( initializing_actions ) /= 'read_restart_data' )     &
     910                IF ( TRIM( initializing_actions ) /= 'read_restart_data' )  THEN
    907911                   spinup = .TRUE.
     912                ELSEIF (        TRIM( initializing_actions ) == 'read_restart_data'      &
     913                         .AND.  time_since_reference_point > 0.0_wp )  THEN
     914                   data_output_during_spinup = .FALSE.  !< required for correct ntdim calculation
     915                                                        !< in check_parameters for restart run
     916                ENDIF
    908917             ENDIF
    909918          ENDIF
     919PRINT*, 'data_output_during_spinup 2: ', data_output_during_spinup
    910920
    911921!
Note: See TracChangeset for help on using the changeset viewer.