Changeset 3495 for palm/trunk/SOURCE
- Timestamp:
- Nov 6, 2018 3:22:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/radiation_model_mod.f90
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/palm/branches/chemistry/SOURCE/radiation_model_mod.f90 2047-3190,3218-3297 /palm/branches/forwind/SOURCE/radiation_model_mod.f90 1564-1913 /palm/branches/palm4u/SOURCE/radiation_model_mod.f90 2540-2692 /palm/branches/radiation/SOURCE/radiation_model_mod.f90 2081-3493 /palm/branches/rans/SOURCE/radiation_model_mod.f90 2078-3128 /palm/branches/resler/SOURCE/radiation_model_mod.f90 2023-3336 /palm/branches/salsa/SOURCE/radiation_model_mod.f90 2503-3460 /palm/branches/fricke/SOURCE/radiation_model_mod.f90 942-977 /palm/branches/hoffmann/SOURCE/radiation_model_mod.f90 989-1052 /palm/branches/letzel/masked_output/SOURCE/radiation_model_mod.f90 296-409 /palm/branches/suehring/radiation_model_mod.f90 423-666
r3464 r3495 28 28 ! ----------------- 29 29 ! $Id$ 30 ! Resort control_parameters ONLY list, 31 ! From branch radiation@3491 moh.hefny: 32 ! bugfix in calculating the apparent solar positions by updating 33 ! the simulated time so that the actual time is correct. 34 ! 35 ! 3464 2018-10-30 18:08:55Z kanani 30 36 ! From branch resler@3462, pavelkrc: 31 37 ! add MRT shaping function for human … … 517 523 518 524 USE control_parameters, & 519 ONLY: cloud_droplets, coupling_char, dz, 525 ONLY: cloud_droplets, coupling_char, dz, dt_spinup, end_time, & 520 526 humidity, & 521 527 initializing_actions, io_blocks, io_group, & 522 latitude, longitude, large_scale_forcing, lsf_surf, & 523 message_string, plant_canopy, pt_surface,& 524 rho_surface, surface_pressure, time_since_reference_point, & 525 urban_surface, land_surface, end_time, spinup_time, dt_spinup 528 land_surface, large_scale_forcing, & 529 latitude, longitude, lsf_surf, & 530 message_string, plant_canopy, pt_surface, & 531 rho_surface, simulated_time, spinup_time, surface_pressure, & 532 time_since_reference_point, urban_surface 526 533 527 534 USE cpulog, & … … 4876 4883 raytrace_discrete_azims) 4877 4884 isd = dsidir_rev(j, i) 4885 !-- TODO: check if isd = -1 to report that this solar position is not precalculated 4878 4886 DO isurf = 1, nsurfl 4879 4887 j = surfl(iy, isurf) … … 7739 7747 INTEGER(iwp) :: it, i, j 7740 7748 REAL(wp) :: tsrp_prev 7749 REAL(wp) :: simulated_time_prev 7741 7750 REAL(wp), DIMENSION(:,:), ALLOCATABLE :: dsidir_tmp !< dsidir_tmp[:,i] = unit vector of i-th 7742 7751 !< appreant solar direction … … 7753 7762 !-- true value later 7754 7763 tsrp_prev = time_since_reference_point 7764 simulated_time_prev = simulated_time 7755 7765 sun_direction = .TRUE. 7756 7766 … … 7760 7770 DO it = 0, CEILING(spinup_time / dt_spinup) 7761 7771 time_since_reference_point = -spinup_time + REAL(it, wp) * dt_spinup 7772 simulated_time = simulated_time + dt_spinup 7762 7773 CALL simulate_pos 7763 7774 ENDDO … … 7767 7778 DO it = 0, CEILING(( end_time - spinup_time ) / dt_radiation) 7768 7779 time_since_reference_point = REAL(it, wp) * dt_radiation 7780 simulated_time = simulated_time + dt_spinup 7769 7781 CALL simulate_pos 7770 7782 ENDDO 7771 7783 7772 7784 time_since_reference_point = tsrp_prev 7785 simulated_time = simulated_time_prev 7773 7786 7774 7787 !-- Allocate global vars which depend on ndsidir -
Property
svn:mergeinfo
set to
(toggle deleted branches)
Note: See TracChangeset
for help on using the changeset viewer.