Ignore:
Timestamp:
Oct 19, 2012 2:35:30 PM (12 years ago)
Author:
raasch
Message:

netCDF4 without parallel file support implemented
additional define string netcdf4_parallel is required to switch on parallel file support

File:
1 edited

Legend:

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

    r1020 r1031  
    44! Current revisions:
    55! -----------------
    6 !
     6! check of netcdf4 parallel file support
    77!
    88! Former revisions:
     
    28472847
    28482848       ENDDO
     2849    ENDIF
     2850
     2851!
     2852!-- Set output format string (used in header)
     2853    IF ( netcdf_output )  THEN
     2854
     2855       SELECT CASE ( netcdf_data_format )
     2856          CASE ( 1 )
     2857             output_format_netcdf = 'netCDF classic'
     2858          CASE ( 2 )
     2859             output_format_netcdf = 'netCDF 64bit offset'
     2860          CASE ( 3 )
     2861             output_format_netcdf = 'netCDF4/HDF5'
     2862          CASE ( 4 )
     2863             output_format_netcdf = 'netCDF4/HDF5 classic'
     2864          CASE ( 5 )
     2865             output_format_netcdf = 'parallel netCDF4/HDF5'
     2866          CASE ( 6 )
     2867             output_format_netcdf = 'parallel netCDF4/HDF5 classic'
     2868
     2869       END SELECT
    28492870
    28502871    ENDIF
     
    28822903!-- Check the NetCDF data format
    28832904#if ! defined ( __check )
    2884     IF ( netcdf_data_format > 2 )  THEN
     2905    IF ( netcdf_data_format > 2  .AND.  netcdf_data_format < 5 )  THEN
    28852906#if defined( __netcdf4 )
    28862907       CONTINUE
    28872908#else
    2888        message_string = 'NetCDF: NetCDF4 format requested but no ' // &
     2909       message_string = 'netCDF: netCDF4 format requested but no ' // &
    28892910                        'cpp-directive __netcdf4 given & switch '  // &
    28902911                        'back to 64-bit offset format'
     
    28932914#endif
    28942915    ENDIF
     2916    IF ( netcdf_data_format > 4 )  THEN
     2917#if defined( __netcdf4 ) && defined( __netcdf4_parallel )
     2918       CONTINUE
     2919#else
     2920       message_string = 'netCDF: netCDF4 parallel output requested but no ' // &
     2921                        'cpp-directive __netcdf4_parallel given & switch '  // &
     2922                        'back to netCDF4 non-parallel output'
     2923       CALL message( 'check_parameters', 'PA0099', 0, 1, 0, 6, 0 )
     2924       netcdf_data_format = netcdf_data_format - 2
    28952925#endif
    2896 !
     2926    ENDIF
     2927#endif
    28972928
    28982929#if ! defined( __check )
     2930!
    28992931!-- Check netcdf precison
    29002932    ldum = .FALSE.
Note: See TracChangeset for help on using the changeset viewer.