Ignore:
Timestamp:
11/26/14 12:06:21 (9 years ago)
Author:
rlacroix
Message:

Add a new attribute to the file definition so that the output format can be controlled.

Currently the supported formats are "netcdf4" and "netcdf4_classic". The "format" attribute is optional. The "netcdf4" format will be used when no format is explicitly defined. Since "netcdf4" is the format which was previously used by XIOS, existing configuration files will not be affected by this change.

If "netcdf4_classic" is used, the output file(s) will be created using the classic NetCDF format. This format can be used with the attribute "type" set to "one_file" if the NetCDF4 library was compiled with Parallel NetCDF support (--enable-pnetcdf).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/output/nc4_data_output.cpp

    r501 r517  
    2929 
    3030      CNc4DataOutput::CNc4DataOutput 
    31          (const StdString & filename, bool exist, MPI_Comm comm_file,bool multifile, bool isCollective) 
     31         (const StdString & filename, bool exist, bool useClassicFormat, 
     32          MPI_Comm comm_file,bool multifile, bool isCollective) 
    3233            : SuperClass() 
    33             , SuperClassWriter(filename, exist, &comm_file,multifile) 
     34            , SuperClassWriter(filename, exist, useClassicFormat, &comm_file, multifile) 
    3435            , comm_file(comm_file) 
    3536            , filename(filename) 
     
    732733           } 
    733734           else 
    734            { 
    735               double * default_value = NULL; 
    736               SuperClassWriter::setDefaultValue(fieldid, default_value); 
    737            } 
     735              SuperClassWriter::setDefaultValue(fieldid, (double*)NULL); 
    738736 
    739737           {  // Ecriture des coordonnées 
Note: See TracChangeset for help on using the changeset viewer.