Changeset 1386
- Timestamp:
- May 5, 2014 1:55:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/flow_statistics.f90
r1383 r1386 21 21 ! Current revisions: 22 22 ! ----------------- 23 ! 23 ! bugfix: simulated time before the last timestep is needed for the correct 24 ! calculation of the profiles of large scale forcing tendencies 24 25 ! 25 26 ! Former revisions: … … 1009 1010 !-- Interpolation in time of LSF_DATA 1010 1011 nt = 1 1011 DO WHILE ( simulated_time > time_vert(nt) )1012 DO WHILE ( simulated_time - dt_3d > time_vert(nt) ) 1012 1013 nt = nt + 1 1013 1014 ENDDO 1014 IF ( simulated_time /= time_vert(nt) ) THEN1015 IF ( simulated_time - dt_3d /= time_vert(nt) ) THEN 1015 1016 nt = nt - 1 1016 1017 ENDIF 1017 1018 1018 fac = ( simulated_time -time_vert(nt) )&1019 fac = ( simulated_time - dt_3d - time_vert(nt) ) & 1019 1020 / ( time_vert(nt+1)-time_vert(nt) ) 1020 1021 … … 2764 2765 !-- Interpolation in time of LSF_DATA 2765 2766 nt = 1 2766 DO WHILE ( simulated_time > time_vert(nt) )2767 DO WHILE ( simulated_time - dt_3d > time_vert(nt) ) 2767 2768 nt = nt + 1 2768 2769 ENDDO 2769 IF ( simulated_time /= time_vert(nt) ) THEN2770 IF ( simulated_time - dt_3d /= time_vert(nt) ) THEN 2770 2771 nt = nt - 1 2771 2772 ENDIF 2772 2773 2773 fac = ( simulated_time -time_vert(nt) )&2774 fac = ( simulated_time - dt_3d - time_vert(nt) ) & 2774 2775 / ( time_vert(nt+1)-time_vert(nt) ) 2775 2776
Note: See TracChangeset
for help on using the changeset viewer.