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/node/file.cpp

    r775 r802  
    274274 
    275275      if (time_counter.isEmpty()) time_counter.setValue(time_counter_attr::centered); 
     276      if (time_counter_name.isEmpty()) time_counter_name = "time_counter"; 
    276277    } 
    277278 
     
    425426 
    426427        data_out = shared_ptr<CDataOutput>(new CNc4DataOutput(oss.str(), append, useClassicFormat, 
    427                                                               fileComm, multifile, isCollective)); 
     428                                                              fileComm, multifile, isCollective, time_counter_name)); 
    428429        isOpen = true; 
    429430 
     
    525526      if (isOpen) data_out->closeFile(); 
    526527 
    527       data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), fileComm, multifile, isCollective)); 
     528      data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), fileComm, multifile, isCollective, time_counter_name)); 
    528529      isOpen = true; 
    529530    } 
Note: See TracChangeset for help on using the changeset viewer.