Changeset 4195 for palm/trunk
- Timestamp:
- Aug 28, 2019 1:44:27 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lagrangian_particle_model_mod.f90
r4182 r4195 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix for simple_corrector interpolation method in case of ocean runs and 28 ! output particle advection interpolation method into header 29 ! 30 ! 4182 2019-08-22 15:20:23Z scharf 27 31 ! Corrected "Former revisions" section 28 32 ! … … 622 626 623 627 CHARACTER (LEN=40) :: output_format !< netcdf format 624 628 625 629 INTEGER(iwp) :: i !< 626 630 INTEGER(iwp), INTENT(IN) :: io !< Unit of the output file 627 631 628 632 629 633 IF ( humidity .AND. cloud_droplets ) THEN 630 634 WRITE ( io, 433 ) … … 643 647 ! 644 648 !-- Particle attributes 645 WRITE ( io, 480 ) particle_advection_start, dt_prel, bc_par_lr, & 649 WRITE ( io, 480 ) particle_advection_start, TRIM(particle_advection_interpolation), & 650 dt_prel, bc_par_lr, & 646 651 bc_par_ns, bc_par_b, bc_par_t, particle_maximum_age, & 647 652 end_time_prel … … 708 713 ' Particle advection is active (switched on at t = ', F7.1, & 709 714 ' s)'/ & 715 ' Interpolation of particle velocities is done by using ', A, & 716 ' method'/ & 710 717 ' Start of new particle generations every ',F6.1,' s'/ & 711 718 ' Boundary conditions: left/right: ', A, ' north/south: ', A/& … … 1222 1229 1223 1230 TYPE(particle_type),TARGET :: tmp_particle !< temporary particle used for initialization 1231 1224 1232 1225 1233 ! … … 3297 3305 ! 3298 3306 !-- z_direction 3299 k_next = MAX( MIN( FLOOR( zp / (zw(kkw+1)-zw(kkw)) ), nzt ), 0)3307 k_next = MAX( MIN( FLOOR( zp / (zw(kkw+1)-zw(kkw)) + offset_ocean_nzt ), nzt ), 0) 3300 3308 gamma = MAX( MIN( ( zp - zw(k_next) ) / & 3301 3309 ( zw(k_next+1) - zw(k_next) ), 1.0_wp ), 0.0_wp )
Note: See TracChangeset
for help on using the changeset viewer.