Ignore:
Timestamp:
Mar 19, 2010 5:30:02 AM (14 years ago)
Author:
raasch
Message:

NetCDF4 support for particle data; special character allowed for NetCDF variable names

File:
1 edited

Legend:

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

    r482 r519  
    55! -----------------
    66! TEST: PRINT statements on unit 9 (commented out)
     7! NetCDF4 output format allows size of particle array to be extended
    78!
    89! Former revisions:
     
    19781979          IF ( number_of_particles + number_of_initial_particles > &
    19791980               maximum_number_of_particles  )  THEN
    1980              IF ( netcdf_output )  THEN
     1981             IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    19811982                message_string = 'maximum_number_of_particles ' //   &
    19821983                                 'needs to be increased ' //         &
    19831984                                 '&but this is not allowed with ' // &
    1984                                  'NetCDF output switched on'
     1985                                 'netcdf_data_format < 3'
    19851986                CALL message( 'advec_particles', 'PA0146', 2, 2, -1, 6, 1 )
    19861987             ELSE
     
    19981999             IF ( number_of_tails + number_of_initial_tails > &
    19992000                  maximum_number_of_tails  )  THEN
    2000                 IF ( netcdf_output )  THEN
     2001                IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    20012002                   message_string = 'maximum_number_of_tails ' //    &
    20022003                                    'needs to be increased ' //      &
    20032004                                    '&but this is not allowed wi' // &
    2004                                     'th NetCDF output switched on'
     2005                                    'th netcdf_data_format < 3'
    20052006                   CALL message( 'advec_particles', 'PA0147', 2, 2, -1, 6, 1 )
    20062007                ELSE
     
    23892390               maximum_number_of_particles )           &
    23902391          THEN
    2391              IF ( netcdf_output )  THEN
     2392             IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    23922393                 message_string = 'maximum_number_of_particles ' //    &
    23932394                                  'needs to be increased ' //          &
    23942395                                  '&but this is not allowed with ' //  &
    2395                                   'NetCDF output switched on'
     2396                                  'netcdf-data_format < 3'
    23962397                CALL message( 'advec_particles', 'PA0146', 2, 2, -1, 6, 1 )
    23972398             ELSE
     
    24172418             IF ( number_of_tails+trrpt_count_recv > maximum_number_of_tails ) &
    24182419             THEN
    2419                 IF ( netcdf_output )  THEN
     2420                IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    24202421                   message_string = 'maximum_number_of_tails ' //   &
    24212422                                    'needs to be increased ' //     &
    24222423                                    '&but this is not allowed wi'// &
    2423                                     'th NetCDF output switched on'
     2424                                    'th netcdf_data_format < 3'
    24242425                   CALL message( 'advec_particles', 'PA0147', 2, 2, -1, 6, 1 )
    24252426                ELSE
     
    24662467               maximum_number_of_particles )           &
    24672468          THEN
    2468              IF ( netcdf_output )  THEN
     2469             IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    24692470                message_string = 'maximum_number_of_particles ' //  &
    24702471                                 'needs to be increased ' //        &
    24712472                                 '&but this is not allowed with '// &
    2472                                  'NetCDF output switched on'
     2473                                 'netcdf_data_format < 3'
    24732474                CALL message( 'advec_particles', 'PA0146', 2, 2, -1, 6, 1 )
    24742475             ELSE
     
    24942495             IF ( number_of_tails+trlpt_count_recv > maximum_number_of_tails ) &
    24952496             THEN
    2496                 IF ( netcdf_output )  THEN
     2497                IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    24972498                   message_string = 'maximum_number_of_tails ' //   &
    24982499                                    'needs to be increased ' //     &
    24992500                                    '&but this is not allowed wi'// &
    2500                                     'th NetCDF output switched on'
     2501                                    'th netcdf_data_format < 3'
    25012502                   CALL message( 'advec_particles', 'PA0147', 2, 2, -1, 6, 1 )
    25022503                ELSE
     
    28362837               maximum_number_of_particles )           &
    28372838          THEN
    2838              IF ( netcdf_output )  THEN
     2839             IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    28392840                message_string = 'maximum_number_of_particles ' //  &
    28402841                                 'needs to be increased ' //        &
    28412842                                 '&but this is not allowed with '// &
    2842                                  'NetCDF output switched on'
     2843                                 'netcdf_data_format < 3'
    28432844                CALL message( 'advec_particles', 'PA0146', 2, 2, -1, 6, 1 )
    28442845             ELSE
     
    28642865             IF ( number_of_tails+trnpt_count_recv > maximum_number_of_tails ) &
    28652866             THEN
    2866                 IF ( netcdf_output )  THEN
     2867                IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    28672868                   message_string = 'maximum_number_of_tails ' //    &
    28682869                                    'needs to be increased ' //      &
    28692870                                    '&but this is not allowed wi' // &
    2870                                     'th NetCDF output switched on'
     2871                                    'th netcdf_data_format < 3'
    28712872                   CALL message( 'advec_particles', 'PA0147', 2, 2, -1, 6, 1 )
    28722873                ELSE
     
    29142915               maximum_number_of_particles )           &
    29152916          THEN
    2916              IF ( netcdf_output )  THEN
     2917             IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    29172918                message_string = 'maximum_number_of_particles ' //   &
    29182919                                 'needs to be increased ' //         &
    29192920                                 '&but this is not allowed with ' // &
    2920                                  'NetCDF output switched on'
     2921                                 'netcdf_data_format < 3'
    29212922               CALL message( 'advec_particles', 'PA0146', 2, 2, -1, 6, 1 ) 
    29222923             ELSE
     
    29422943             IF ( number_of_tails+trspt_count_recv > maximum_number_of_tails ) &
    29432944             THEN
    2944                 IF ( netcdf_output )  THEN
     2945                IF ( netcdf_output  .AND.  netcdf_data_format < 3 )  THEN
    29452946                   message_string = 'maximum_number_of_tails ' //   &
    29462947                                    'needs to be increased ' //     &
Note: See TracChangeset for help on using the changeset viewer.