Ignore:
Timestamp:
Mar 21, 2014 11:00:16 AM (10 years ago)
Author:
raasch
Message:

Changed:


-s real64 removed (.mrun.config.hlrnIII)
-r8 removed (.mrun.config.imuk)
deleted: .mrun.config.imuk_ice2_netcdf4 .mrun.config.imuk_hlrn

REAL constants defined as wp-kind in modules

"baroclinicity" renamed "baroclinity", "ocean version" replaced by
"ocean mode"

code parts concerning old output formats "iso2d" and "avs" removed.
netCDF is the only remaining output format.

Errors:


bugfix: duplicate error message 56 removed

File:
1 edited

Legend:

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

    r1321 r1327  
    2020! Current revisions:
    2121! ------------------
     22! -netcdf output queries
    2223!
    2324! Former revisions:
     
    4344
    4445    USE control_parameters,                                                    &
    45         ONLY:  netcdf_output, prt_time_count, simulated_time
     46        ONLY:  prt_time_count, simulated_time
    4647
    4748    USE cpulog,                                                                &
     
    8081!
    8182!-- Output in netCDF format
    82     IF ( netcdf_output )  THEN
    83 
    84        CALL check_open( 108 )
     83    CALL check_open( 108 )
    8584
    8685!
    87 !--    Update the NetCDF time axis
    88        prt_time_count = prt_time_count + 1
     86!-- Update the NetCDF time axis
     87    prt_time_count = prt_time_count + 1
    8988
    90        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_time_prt, &
    91                                (/ simulated_time /),        &
    92                                start = (/ prt_time_count /), count = (/ 1 /) )
    93        CALL handle_netcdf_error( 'lpm_data_output_particles', 1 )
     89    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_time_prt, &
     90                            (/ simulated_time /),        &
     91                            start = (/ prt_time_count /), count = (/ 1 /) )
     92    CALL handle_netcdf_error( 'lpm_data_output_particles', 1 )
    9493
    9594!
    96 !--    Output the real number of particles used
    97        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_rnop_prt, &
    98                                (/ number_of_particles /),   &
    99                                start = (/ prt_time_count /), count = (/ 1 /) )
    100        CALL handle_netcdf_error( 'lpm_data_output_particles', 2 )
     95!-- Output the real number of particles used
     96    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_rnop_prt, &
     97                            (/ number_of_particles /),   &
     98                            start = (/ prt_time_count /), count = (/ 1 /) )
     99    CALL handle_netcdf_error( 'lpm_data_output_particles', 2 )
    101100
    102101!
    103 !--    Output all particle attributes
    104        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(1), particles%age,      &
    105                                start = (/ 1, prt_time_count /),               &
    106                                count = (/ maximum_number_of_particles /) )
    107        CALL handle_netcdf_error( 'lpm_data_output_particles', 3 )
     102!-- Output all particle attributes
     103    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(1), particles%age,      &
     104                            start = (/ 1, prt_time_count /),               &
     105                            count = (/ maximum_number_of_particles /) )
     106    CALL handle_netcdf_error( 'lpm_data_output_particles', 3 )
    108107
    109        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(2), particles%dvrp_psize,&
    110                                start = (/ 1, prt_time_count /),                &
    111                                count = (/ maximum_number_of_particles /) )
    112        CALL handle_netcdf_error( 'lpm_data_output_particles', 4 )
     108    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(2), particles%dvrp_psize,&
     109                            start = (/ 1, prt_time_count /),                &
     110                            count = (/ maximum_number_of_particles /) )
     111    CALL handle_netcdf_error( 'lpm_data_output_particles', 4 )
    113112
    114        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(3), particles%origin_x, &
    115                                start = (/ 1, prt_time_count /),               &
    116                                count = (/ maximum_number_of_particles /) )
    117        CALL handle_netcdf_error( 'lpm_data_output_particles', 5 )
     113    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(3), particles%origin_x, &
     114                            start = (/ 1, prt_time_count /),               &
     115                            count = (/ maximum_number_of_particles /) )
     116    CALL handle_netcdf_error( 'lpm_data_output_particles', 5 )
    118117
    119        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(4), particles%origin_y, &
    120                                start = (/ 1, prt_time_count /),               &
    121                                count = (/ maximum_number_of_particles /) )
    122        CALL handle_netcdf_error( 'lpm_data_output_particles', 6 )
     118    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(4), particles%origin_y, &
     119                            start = (/ 1, prt_time_count /),               &
     120                            count = (/ maximum_number_of_particles /) )
     121    CALL handle_netcdf_error( 'lpm_data_output_particles', 6 )
    123122
    124        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(5), particles%origin_z, &
    125                                start = (/ 1, prt_time_count /),               &
    126                                count = (/ maximum_number_of_particles /) )
    127        CALL handle_netcdf_error( 'lpm_data_output_particles', 7 )
     123    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(5), particles%origin_z, &
     124                            start = (/ 1, prt_time_count /),               &
     125                            count = (/ maximum_number_of_particles /) )
     126    CALL handle_netcdf_error( 'lpm_data_output_particles', 7 )
    128127
    129        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(6), particles%radius,   &
    130                                start = (/ 1, prt_time_count /),               &
    131                                count = (/ maximum_number_of_particles /) )
    132        CALL handle_netcdf_error( 'lpm_data_output_particles', 8 )
     128    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(6), particles%radius,   &
     129                            start = (/ 1, prt_time_count /),               &
     130                            count = (/ maximum_number_of_particles /) )
     131    CALL handle_netcdf_error( 'lpm_data_output_particles', 8 )
    133132
    134        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(7), particles%speed_x,  &
    135                                start = (/ 1, prt_time_count /),               &
    136                                count = (/ maximum_number_of_particles /) )
    137        CALL handle_netcdf_error( 'lpm_data_output_particles', 9 )
     133    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(7), particles%speed_x,  &
     134                            start = (/ 1, prt_time_count /),               &
     135                            count = (/ maximum_number_of_particles /) )
     136    CALL handle_netcdf_error( 'lpm_data_output_particles', 9 )
    138137
    139        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(8), particles%speed_y,  &
    140                                start = (/ 1, prt_time_count /),               &
    141                                count = (/ maximum_number_of_particles /) )
    142        CALL handle_netcdf_error( 'lpm_data_output_particles', 10 )
     138    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(8), particles%speed_y,  &
     139                            start = (/ 1, prt_time_count /),               &
     140                            count = (/ maximum_number_of_particles /) )
     141    CALL handle_netcdf_error( 'lpm_data_output_particles', 10 )
    143142
    144        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(9), particles%speed_z,  &
    145                                start = (/ 1, prt_time_count /),               &
    146                                count = (/ maximum_number_of_particles /) )
    147        CALL handle_netcdf_error( 'lpm_data_output_particles', 11 )
     143    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(9), particles%speed_z,  &
     144                            start = (/ 1, prt_time_count /),               &
     145                            count = (/ maximum_number_of_particles /) )
     146    CALL handle_netcdf_error( 'lpm_data_output_particles', 11 )
    148147
    149        nc_stat = NF90_PUT_VAR( id_set_prt,id_var_prt(10),                     &
    150                                particles%weight_factor,                       &
    151                                start = (/ 1, prt_time_count /),               &
    152                                count = (/ maximum_number_of_particles /) )
    153        CALL handle_netcdf_error( 'lpm_data_output_particles', 12 )
     148    nc_stat = NF90_PUT_VAR( id_set_prt,id_var_prt(10),                     &
     149                            particles%weight_factor,                       &
     150                            start = (/ 1, prt_time_count /),               &
     151                            count = (/ maximum_number_of_particles /) )
     152    CALL handle_netcdf_error( 'lpm_data_output_particles', 12 )
    154153
    155        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(11), particles%x,       &
    156                                start = (/ 1, prt_time_count /),               &
    157                                count = (/ maximum_number_of_particles /) )
    158        CALL handle_netcdf_error( 'lpm_data_output_particles', 13 )
     154    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(11), particles%x,       &
     155                            start = (/ 1, prt_time_count /),               &
     156                            count = (/ maximum_number_of_particles /) )
     157    CALL handle_netcdf_error( 'lpm_data_output_particles', 13 )
    159158
    160        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(12), particles%y,       &
    161                                start = (/ 1, prt_time_count /),               &
    162                                count = (/ maximum_number_of_particles /) )
    163        CALL handle_netcdf_error( 'lpm_data_output_particles', 14 )
     159    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(12), particles%y,       &
     160                            start = (/ 1, prt_time_count /),               &
     161                            count = (/ maximum_number_of_particles /) )
     162    CALL handle_netcdf_error( 'lpm_data_output_particles', 14 )
    164163
    165        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(13), particles%z,       &
    166                                start = (/ 1, prt_time_count /),               &
    167                                count = (/ maximum_number_of_particles /) )
    168        CALL handle_netcdf_error( 'lpm_data_output_particles', 15 )
     164    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(13), particles%z,       &
     165                            start = (/ 1, prt_time_count /),               &
     166                            count = (/ maximum_number_of_particles /) )
     167    CALL handle_netcdf_error( 'lpm_data_output_particles', 15 )
    169168
    170        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(14), particles%class,   &
    171                                start = (/ 1, prt_time_count /),               &
    172                                count = (/ maximum_number_of_particles /) )
    173        CALL handle_netcdf_error( 'lpm_data_output_particles', 16 )
     169    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(14), particles%class,   &
     170                            start = (/ 1, prt_time_count /),               &
     171                            count = (/ maximum_number_of_particles /) )
     172    CALL handle_netcdf_error( 'lpm_data_output_particles', 16 )
    174173
    175        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(15), particles%group,   &
    176                                start = (/ 1, prt_time_count /),               &
    177                                count = (/ maximum_number_of_particles /) )
    178        CALL handle_netcdf_error( 'lpm_data_output_particles', 17 )
     174    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(15), particles%group,   &
     175                            start = (/ 1, prt_time_count /),               &
     176                            count = (/ maximum_number_of_particles /) )
     177    CALL handle_netcdf_error( 'lpm_data_output_particles', 17 )
    179178
    180        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(16),                    &
    181                                particles%tailpoints,                          &
    182                                start = (/ 1, prt_time_count /),               &
    183                                count = (/ maximum_number_of_particles /) )
    184        CALL handle_netcdf_error( 'lpm_data_output_particles', 18 )
     179    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(16),                    &
     180                            particles%tailpoints,                          &
     181                            start = (/ 1, prt_time_count /),               &
     182                            count = (/ maximum_number_of_particles /) )
     183    CALL handle_netcdf_error( 'lpm_data_output_particles', 18 )
    185184
    186        nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(17), particles%tail_id, &
    187                                start = (/ 1, prt_time_count /),               &
    188                                count = (/ maximum_number_of_particles /) )
    189        CALL handle_netcdf_error( 'lpm_data_output_particles', 19 )
    190 
    191     ENDIF
     185    nc_stat = NF90_PUT_VAR( id_set_prt, id_var_prt(17), particles%tail_id, &
     186                            start = (/ 1, prt_time_count /),               &
     187                            count = (/ maximum_number_of_particles /) )
     188    CALL handle_netcdf_error( 'lpm_data_output_particles', 19 )
    192189
    193190#endif
Note: See TracChangeset for help on using the changeset viewer.