Changeset 263 for palm/trunk/SOURCE/advec_particles.f90
- Timestamp:
- Mar 18, 2009 12:26:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/advec_particles.f90
r262 r263 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! Output of NetCDF messages with aid of message handling routine. 6 7 ! Output of messages replaced by message handling routine 7 8 ! Bugfix: error in check, if particles moved further than one subdomain length. … … 3594 3595 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_time_prt, (/ simulated_time /), & 3595 3596 start = (/ prt_time_count /), count = (/ 1 /) ) 3596 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(1 )3597 CALL handle_netcdf_error( 'output_particles_netcdf', 1 ) 3597 3598 3598 3599 ! … … 3601 3602 (/ number_of_particles /), & 3602 3603 start = (/ prt_time_count /), count = (/ 1 /) ) 3603 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(2 )3604 CALL handle_netcdf_error( 'output_particles_netcdf', 2 ) 3604 3605 3605 3606 ! … … 3608 3609 start = (/ 1, prt_time_count /), & 3609 3610 count = (/ maximum_number_of_particles /) ) 3610 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(3 )3611 CALL handle_netcdf_error( 'output_particles_netcdf', 3 ) 3611 3612 3612 3613 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(2), particles%dvrp_psize, & 3613 3614 start = (/ 1, prt_time_count /), & 3614 3615 count = (/ maximum_number_of_particles /) ) 3615 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(4 )3616 CALL handle_netcdf_error( 'output_particles_netcdf', 4 ) 3616 3617 3617 3618 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(3), particles%origin_x, & 3618 3619 start = (/ 1, prt_time_count /), & 3619 3620 count = (/ maximum_number_of_particles /) ) 3620 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(5 )3621 CALL handle_netcdf_error( 'output_particles_netcdf', 5 ) 3621 3622 3622 3623 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(4), particles%origin_y, & 3623 3624 start = (/ 1, prt_time_count /), & 3624 3625 count = (/ maximum_number_of_particles /) ) 3625 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(6 )3626 CALL handle_netcdf_error( 'output_particles_netcdf', 6 ) 3626 3627 3627 3628 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(5), particles%origin_z, & 3628 3629 start = (/ 1, prt_time_count /), & 3629 3630 count = (/ maximum_number_of_particles /) ) 3630 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(7 )3631 CALL handle_netcdf_error( 'output_particles_netcdf', 7 ) 3631 3632 3632 3633 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(6), particles%radius, & 3633 3634 start = (/ 1, prt_time_count /), & 3634 3635 count = (/ maximum_number_of_particles /) ) 3635 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(8 )3636 CALL handle_netcdf_error( 'output_particles_netcdf', 8 ) 3636 3637 3637 3638 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(7), particles%speed_x, & 3638 3639 start = (/ 1, prt_time_count /), & 3639 3640 count = (/ maximum_number_of_particles /) ) 3640 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(9 )3641 CALL handle_netcdf_error( 'output_particles_netcdf', 9 ) 3641 3642 3642 3643 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(8), particles%speed_y, & 3643 3644 start = (/ 1, prt_time_count /), & 3644 3645 count = (/ maximum_number_of_particles /) ) 3645 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(10 )3646 CALL handle_netcdf_error( 'output_particles_netcdf', 10 ) 3646 3647 3647 3648 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(9), particles%speed_z, & 3648 3649 start = (/ 1, prt_time_count /), & 3649 3650 count = (/ maximum_number_of_particles /) ) 3650 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(11 )3651 CALL handle_netcdf_error( 'output_particles_netcdf', 11 ) 3651 3652 3652 3653 nc_stat = NF90_PUT_VAR( id_set_prt,id_var_prt(10),particles%weight_factor,& 3653 3654 start = (/ 1, prt_time_count /), & 3654 3655 count = (/ maximum_number_of_particles /) ) 3655 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(12 )3656 CALL handle_netcdf_error( 'output_particles_netcdf', 12 ) 3656 3657 3657 3658 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(11), particles%x, & 3658 3659 start = (/ 1, prt_time_count /), & 3659 3660 count = (/ maximum_number_of_particles /) ) 3660 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(13 )3661 CALL handle_netcdf_error( 'output_particles_netcdf', 13 ) 3661 3662 3662 3663 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(12), particles%y, & 3663 3664 start = (/ 1, prt_time_count /), & 3664 3665 count = (/ maximum_number_of_particles /) ) 3665 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(14 )3666 CALL handle_netcdf_error( 'output_particles_netcdf', 14 ) 3666 3667 3667 3668 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(13), particles%z, & 3668 3669 start = (/ 1, prt_time_count /), & 3669 3670 count = (/ maximum_number_of_particles /) ) 3670 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(15 )3671 CALL handle_netcdf_error( 'output_particles_netcdf', 15 ) 3671 3672 3672 3673 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(14), particles%color, & 3673 3674 start = (/ 1, prt_time_count /), & 3674 3675 count = (/ maximum_number_of_particles /) ) 3675 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(16 )3676 CALL handle_netcdf_error( 'output_particles_netcdf', 16 ) 3676 3677 3677 3678 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(15), particles%group, & 3678 3679 start = (/ 1, prt_time_count /), & 3679 3680 count = (/ maximum_number_of_particles /) ) 3680 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(17 )3681 CALL handle_netcdf_error( 'output_particles_netcdf', 17 ) 3681 3682 3682 3683 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(16), particles%tailpoints, & 3683 3684 start = (/ 1, prt_time_count /), & 3684 3685 count = (/ maximum_number_of_particles /) ) 3685 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(18 )3686 CALL handle_netcdf_error( 'output_particles_netcdf', 18 ) 3686 3687 3687 3688 nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(17), particles%tail_id, & 3688 3689 start = (/ 1, prt_time_count /), & 3689 3690 count = (/ maximum_number_of_particles /) ) 3690 IF (nc_stat /= NF90_NOERR) CALL handle_netcdf_error(19 )3691 CALL handle_netcdf_error( 'output_particles_netcdf', 19 ) 3691 3692 3692 3693 #endif
Note: See TracChangeset
for help on using the changeset viewer.