Changeset 4226 for palm/trunk/SOURCE/radiation_model_mod.f90
- Timestamp:
- Sep 10, 2019 5:03:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/radiation_model_mod.f90
r4210 r4226 28 28 ! ----------------- 29 29 ! $Id$ 30 ! - Netcdf input routine for dimension length renamed 31 ! - Define time variable for external radiation input relative to time_utc_init 32 ! 33 ! 4210 2019-09-02 13:07:09Z suehring 30 34 ! - Revise steering of splitting diffuse and direct radiation 31 35 ! - Bugfixes in checks … … 34 38 ! 35 39 ! 4208 2019-09-02 09:01:07Z suehring 36 ! Bugfix in accessing albedo_pars in the clear-sky branch (merge from branch) 40 ! Bugfix in accessing albedo_pars in the clear-sky branch 41 ! (merge from branch resler) 37 42 ! 38 43 ! 4198 2019-08-29 15:17:48Z gronemeier … … 259 264 close_input_file, & 260 265 get_attribute, & 266 get_dimension_length, & 261 267 get_variable, & 262 268 inquire_num_variables, & … … 264 270 input_file_dynamic, & 265 271 input_pids_dynamic, & 266 netcdf_data_input_get_dimension_length, &267 272 num_var_pids, & 268 273 pids_id, & … … 2510 2515 !-- Input time dimension. 2511 2516 IF ( check_existence( vars_pids, 'time_rad' ) ) THEN 2512 CALL netcdf_data_input_get_dimension_length( pids_id, & 2513 ntime, & 2514 'time_rad' ) 2517 CALL get_dimension_length( pids_id, ntime, 'time_rad' ) 2515 2518 2516 2519 ALLOCATE( time_rad_f%var1d(0:ntime-1) ) … … 2637 2640 ENDIF 2638 2641 2639 IF ( time_rad_f%var1d(0) /= 0.0_wp) THEN2642 IF ( time_rad_f%var1d(0) /= time_utc_init ) THEN 2640 2643 message_string = 'External radiation forcing: first point in ' // & 2641 'time is /= 0.0.'2644 'time is /= time_utc_init.' 2642 2645 CALL message( 'radiation_init', 'PA0313', 1, 2, 0, 6, 0 ) 2643 2646 ENDIF 2644 2647 2645 IF ( end_time - spinup_time > time_rad_f%var1d(ntime-1) ) THEN 2648 IF ( end_time - spinup_time > time_rad_f%var1d(ntime-1) & 2649 - time_utc_init ) THEN 2646 2650 message_string = 'External radiation forcing does not cover ' // & 2647 2651 'the entire simulation time.' … … 2832 2836 ELSE 2833 2837 t = 0 2834 DO WHILE ( time_rad_f%var1d(t) <= time_since_reference_point ) 2838 DO WHILE ( time_rad_f%var1d(t) <= & 2839 time_since_reference_point + time_utc_init ) 2835 2840 t = t + 1 2836 2841 ENDDO … … 2838 2843 tm = MAX( t-1, 0 ) 2839 2844 2840 fac_dt = ( time_since_reference_point - time_rad_f%var1d(tm) + dt_3d ) & 2845 fac_dt = ( time_since_reference_point + time_utc_init & 2846 - time_rad_f%var1d(tm) + dt_3d ) & 2841 2847 / ( time_rad_f%var1d(t) - time_rad_f%var1d(tm) ) 2842 2848 fac_dt = MIN( 1.0_wp, fac_dt )
Note: See TracChangeset
for help on using the changeset viewer.