Changeset 878 for XIOS/trunk/src/node/file.cpp
- Timestamp:
- 07/01/16 16:55:33 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/file.cpp
r876 r878 19 19 namespace xios { 20 20 21 /// ////////////////////// D éfinitions ////////////////////// ///21 /// ////////////////////// Dfinitions ////////////////////// /// 22 22 23 23 CFile::CFile(void) … … 140 140 for ( it = this->enabledFields.begin(); it != this->enabledFields.end(); it++ ) 141 141 { 142 if (!(*it)->enabled.isEmpty()) // Si l'attribut 'enabled' est d éfini ...142 if (!(*it)->enabled.isEmpty()) // Si l'attribut 'enabled' est dfini ... 143 143 { 144 144 if (! (*it)->enabled.getValue()) continue; 145 145 // { it--; this->enabledFields.erase(it+1); continue; } 146 146 } 147 else // Si l'attribut 'enabled' n'est pas d éfini ...147 else // Si l'attribut 'enabled' n'est pas dfini ... 148 148 { 149 149 if (!default_enabled) continue; … … 151 151 } 152 152 153 if (!(*it)->level.isEmpty()) // Si l'attribut 'level' est d éfini ...153 if (!(*it)->level.isEmpty()) // Si l'attribut 'level' est dfini ... 154 154 { 155 155 if ((*it)->level.getValue() > _outputlevel) continue; 156 156 // { it--; this->enabledFields.erase(it+1); continue; } 157 157 } 158 else // Si l'attribut 'level' n'est pas d éfini ...158 else // Si l'attribut 'level' n'est pas dfini ... 159 159 { 160 160 if (default_level > _outputlevel) continue; … … 168 168 // Le champ est finalement actif, on y ajoute sa propre reference. 169 169 // (*it)->refObject.push_back(*it); 170 // Le champ est finalement actif, on y ajoute la r éférence au champ de base.170 // Le champ est finalement actif, on y ajoute la rfrence au champ de base. 171 171 (*it)->setRelFile(CFile::get(this)); 172 172 } … … 431 431 432 432 bool useClassicFormat = !format.isEmpty() && format == format_attr::netcdf4_classic; 433 bool useCFConvention = convention.isEmpty() || convention == convention_attr::CF; 433 434 434 435 bool multifile = true; … … 470 471 if (isOpen) data_out->closeFile(); 471 472 472 data_out = shared_ptr<CDataOutput>(new CNc4DataOutput(oss.str(), append, useClassicFormat, 473 data_out = shared_ptr<CDataOutput>(new CNc4DataOutput(oss.str(), append, useClassicFormat, useCFConvention, 473 474 fileComm, multifile, isCollective, time_counter_name)); 474 475 isOpen = true; … … 770 771 void CFile::solveFieldRefInheritance(bool apply) 771 772 { 772 // R ésolution des héritages par référence de chacun des champs contenus dans le fichier.773 // Rsolution des hritages par rfrence de chacun des champs contenus dans le fichier. 773 774 std::vector<CField*> allF = this->getAllFields(); 774 775 for (unsigned int i = 0; i < allF.size(); i++)
Note: See TracChangeset
for help on using the changeset viewer.