Ignore:
Timestamp:
11/30/15 16:21:33 (8 years ago)
Author:
rlacroix
Message:

Add a new file attribute time_counter_name.

Users can now modify the name of the time counter dimension and axis name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/io/inetcdf4.hpp

    r782 r802  
    2222    public: 
    2323      /// Constructors /// 
    24       CINetCDF4(const StdString& filename, const MPI_Comm* comm = NULL, bool multifile = true); 
     24      CINetCDF4(const StdString& filename, const MPI_Comm* comm = NULL, bool multifile = true, 
     25                const StdString& timeCounterName = "time_counter"); 
    2526      CINetCDF4(const CINetCDF4& inetcdf4);       // Not implemented. 
    2627      CINetCDF4(const CINetCDF4* const inetcdf4); // Not implemented. 
     
    4142 
    4243      StdString getUnlimitedDimensionName(const CVarPath* const path = NULL); 
     44 
     45      const StdString& getTimeCounterName(void) const { return timeCounterName; }; 
    4346 
    4447      StdString getCoordinatesId(const StdString& name, const CVarPath* const path = NULL); 
     
    155158      int ncidp; //< Id of the NetCDF file 
    156159      bool mpi;  //< Whether parallel file access is used 
     160      StdString timeCounterName; 
    157161  }; // class CINetCDF4 
    158162} // namespace xios 
Note: See TracChangeset for help on using the changeset viewer.