Ignore:
Timestamp:
Mar 18, 2009 12:26:04 PM (15 years ago)
Author:
heinze
Message:

Output of NetCDF messages with aid of message handling routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/advec_particles.f90

    r262 r263  
    44! Current revisions:
    55! -----------------
     6! Output of NetCDF messages with aid of message handling routine.
    67! Output of messages replaced by message handling routine
    78! Bugfix: error in check, if particles moved further than one subdomain length.
     
    35943595    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_time_prt, (/ simulated_time /), &
    35953596                            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 )
    35973598
    35983599!
     
    36013602                            (/ number_of_particles /),   &
    36023603                            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 )
    36043605
    36053606!
     
    36083609                            start = (/ 1, prt_time_count /),                  &
    36093610                            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 )
    36113612
    36123613    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(2), particles%dvrp_psize,  &
    36133614                            start = (/ 1, prt_time_count /),                  &
    36143615                            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 )
    36163617
    36173618    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(3), particles%origin_x,    &
    36183619                            start = (/ 1, prt_time_count /),                  &
    36193620                            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 )
    36213622
    36223623    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(4), particles%origin_y,    &
    36233624                            start = (/ 1, prt_time_count /),                  &
    36243625                            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 )
    36263627
    36273628    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(5), particles%origin_z,    &
    36283629                            start = (/ 1, prt_time_count /),                  &
    36293630                            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 )
    36313632
    36323633    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(6), particles%radius,      &
    36333634                            start = (/ 1, prt_time_count /),                  &
    36343635                            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 )
    36363637
    36373638    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(7), particles%speed_x,     &
    36383639                            start = (/ 1, prt_time_count /),                  &
    36393640                            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 )
    36413642
    36423643    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(8), particles%speed_y,     &
    36433644                            start = (/ 1, prt_time_count /),                  &
    36443645                            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 )
    36463647
    36473648    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(9), particles%speed_z,     &
    36483649                            start = (/ 1, prt_time_count /),                  &
    36493650                            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 )
    36513652
    36523653    nc_stat = NF90_PUT_VAR( id_set_prt,id_var_prt(10),particles%weight_factor,&
    36533654                            start = (/ 1, prt_time_count /),                  &
    36543655                            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 )
    36563657
    36573658    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(11), particles%x,           &
    36583659                            start = (/ 1, prt_time_count /),                  &
    36593660                            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 )
    36613662
    36623663    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(12), particles%y,          &
    36633664                            start = (/ 1, prt_time_count /),                  &
    36643665                            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 )
    36663667
    36673668    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(13), particles%z,          &
    36683669                            start = (/ 1, prt_time_count /),                  &
    36693670                            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 )
    36713672
    36723673    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(14), particles%color,      &
    36733674                            start = (/ 1, prt_time_count /),                  &
    36743675                            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 )
    36763677
    36773678    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(15), particles%group,      &
    36783679                            start = (/ 1, prt_time_count /),                  &
    36793680                            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 )
    36813682
    36823683    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(16), particles%tailpoints, &
    36833684                            start = (/ 1, prt_time_count /),                  &
    36843685                            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 )
    36863687
    36873688    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(17), particles%tail_id,    &
    36883689                            start = (/ 1, prt_time_count /),                  &
    36893690                            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 )
    36913692
    36923693#endif
Note: See TracChangeset for help on using the changeset viewer.