Ignore:
Timestamp:
May 9, 2018 8:42:38 AM (6 years ago)
Author:
maronga
Message:

series of bugfixes

File:
1 edited

Legend:

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

    r3004 r3014  
    2525! -----------------
    2626! $Id$
     27! Fixed bug in IF statement
     28! Ensure that the time when calling the radiation to be the time step of the
     29! pre-calculated time when first calculate the positions of the sun
     30!
     31! 3004 2018-04-27 12:33:25Z Giersch
    2732! First call of flow_statistics has been removed. It is already called in
    2833! run_control itself
     
    491496
    492497    CHARACTER (LEN=9) ::  time_to_string          !<
    493     INTEGER           ::  n
    494     INTEGER           ::  lsp
     498    INTEGER(iwp)      ::  it
     499    INTEGER(iwp)      ::  lsp
     500    INTEGER(iwp)      ::  n
     501
    495502
    496503    REAL(wp) ::  dt_3d_old  !< temporary storage of timestep to be used for
    497504                            !< steering of run control output interval
     505    REAL(wp) ::  tsrp_org   !< original value of time_since_reference_point
    498506!
    499507!-- At beginning determine the first time step
     
    10401048                ENDIF
    10411049
     1050!
     1051!--             Adjust the current_ time to the time step of the radiation model.
     1052!--             Needed since radiation is pre-calculated and stored only on apparent
     1053!--             solar positions
     1054                it = FLOOR(time_since_reference_point/dt_radiation)
     1055                tsrp_org = time_since_reference_point
     1056                time_since_reference_point = REAL(it,wp) * dt_radiation
     1057
    10421058                CALL radiation_control
    10431059
     
    10501066                   CALL cpu_log( log_point(75), 'radiation_interaction', 'stop' )
    10511067                ENDIF
     1068   
     1069!
     1070!--             Return the current time to its original value
     1071                time_since_reference_point = tsrp_org
    10521072
    10531073             ENDIF
Note: See TracChangeset for help on using the changeset viewer.