Ignore:
Timestamp:
07/01/16 16:55:33 (8 years ago)
Author:
oabramkina
Message:

Sequential version for UGRID norms. File attribute "convention" has been added with two possible values "CF" and "UGRID". The default value is "CF".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/file.cpp

    r876 r878  
    1919namespace xios { 
    2020 
    21    /// ////////////////////// Définitions ////////////////////// /// 
     21   /// ////////////////////// Dfinitions ////////////////////// /// 
    2222 
    2323   CFile::CFile(void) 
     
    140140      for ( it = this->enabledFields.begin(); it != this->enabledFields.end(); it++ ) 
    141141      { 
    142          if (!(*it)->enabled.isEmpty()) // Si l'attribut 'enabled' est défini ... 
     142         if (!(*it)->enabled.isEmpty()) // Si l'attribut 'enabled' est dfini ... 
    143143         { 
    144144            if (! (*it)->enabled.getValue()) continue; 
    145145//            { it--; this->enabledFields.erase(it+1); continue; } 
    146146         } 
    147          else // Si l'attribut 'enabled' n'est pas défini ... 
     147         else // Si l'attribut 'enabled' n'est pas dfini ... 
    148148         { 
    149149            if (!default_enabled) continue; 
     
    151151         } 
    152152 
    153          if (!(*it)->level.isEmpty()) // Si l'attribut 'level' est défini ... 
     153         if (!(*it)->level.isEmpty()) // Si l'attribut 'level' est dfini ... 
    154154         { 
    155155            if ((*it)->level.getValue() > _outputlevel) continue; 
    156156//            { it--; this->enabledFields.erase(it+1); continue; } 
    157157         } 
    158          else // Si l'attribut 'level' n'est pas défini ... 
     158         else // Si l'attribut 'level' n'est pas dfini ... 
    159159         { 
    160160            if (default_level > _outputlevel) continue; 
     
    168168         // Le champ est finalement actif, on y ajoute sa propre reference. 
    169169//         (*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. 
    171171         (*it)->setRelFile(CFile::get(this)); 
    172172      } 
     
    431431 
    432432         bool useClassicFormat = !format.isEmpty() && format == format_attr::netcdf4_classic; 
     433         bool useCFConvention = convention.isEmpty() || convention == convention_attr::CF; 
    433434 
    434435         bool multifile = true; 
     
    470471         if (isOpen) data_out->closeFile(); 
    471472 
    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, 
    473474                                                              fileComm, multifile, isCollective, time_counter_name)); 
    474475        isOpen = true; 
     
    770771   void CFile::solveFieldRefInheritance(bool apply) 
    771772   { 
    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. 
    773774      std::vector<CField*> allF = this->getAllFields(); 
    774775      for (unsigned int i = 0; i < allF.size(); i++) 
Note: See TracChangeset for help on using the changeset viewer.