Changeset 4741 for palm/trunk/SOURCE/calc_mean_profile.f90
- Timestamp:
- Oct 14, 2020 2:32:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/calc_mean_profile.f90
r4542 r4741 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 23 ! 22 ! 23 ! 24 24 ! Former revisions: 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Add option to force calculation of horizontal mean profiles independent on data output 28 ! 29 ! 4542 2020-05-19 15:45:12Z raasch 27 30 ! file re-formatted to follow the PALM coding standard 28 31 ! … … 66 69 !> @todo Missing subroutine description. 67 70 !--------------------------------------------------------------------------------------------------! 68 SUBROUTINE calc_mean_profile( var, pr )71 SUBROUTINE calc_mean_profile( var, pr, force_calc ) 69 72 70 73 USE control_parameters, & … … 84 87 IMPLICIT NONE 85 88 89 LOGICAL, OPTIONAL :: force_calc !< passed flag used to force calculation of mean profiles independend on data output 90 LOGICAL :: force_calc_l = .FALSE. !< control flag 91 86 92 INTEGER(iwp) :: i !< 87 93 INTEGER(iwp) :: j !< … … 99 105 !-- results with jobs which are calling flow_statistics at different time intervals. At 100 106 !-- initialization, intermediate_timestep_count = 0 is considered as well. 107 !-- Note, calc_mean_profile is also called from the radiation. Especially during the spinup when 108 !-- no data output is called, the values in hom do not necessarily reflect horizontal mean. 109 !-- The same is also for nested simulations during the spinup, where hom is initialized on a 110 !-- ealier point in time than the initialization via the parent domain takes place, meaning 111 !-- that hom does not necessarily reflect the horizontal mean during the spinup, too. 112 !-- In order to force the computation of horizontal mean profiles independent on data output, 113 !-- i.e. independent on flow_statistics, add a special control flag. 114 IF ( PRESENT( force_calc ) ) THEN 115 IF ( force_calc ) force_calc_l = .TRUE. 116 ENDIF 101 117 102 IF ( .NOT. flow_statistics_called .AND. intermediate_timestep_count <= 1 ) THEN 118 IF ( ( .NOT. flow_statistics_called .AND. intermediate_timestep_count <= 1 ) .OR. & 119 force_calc_l ) THEN 103 120 104 121 !
Note: See TracChangeset
for help on using the changeset viewer.