Changeset 2389 for XIOS3/trunk/src/node


Ignore:
Timestamp:
07/27/22 11:49:51 (23 months ago)
Author:
jderouillat
Message:

Move renames of the attributes name in the element classes

Location:
XIOS3/trunk/src/node
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/node/axis.cpp

    r2388 r2389  
    340340     return distributedHash + globalHash; 
    341341   } 
    342  
     342   
     343   void CAxis::renameAttributesBeforeWriting(CAxis* writtenAxis) 
     344   { 
     345     if (writtenAxis!=NULL) 
     346     { 
     347       this->name = writtenAxis->getAxisOutputName(); 
     348       // + label if necessary, other attributs concerned ? 
     349     } 
     350     else 
     351     { 
     352       this->name =  this->getId(); 
     353       // + label if necessary, other attributs concerned ? 
     354     } 
     355   } 
     356   
    343357   void CAxis::setGeometricAttributes(const CAxis& axisSrc) 
    344358   { 
  • XIOS3/trunk/src/node/axis.hpp

    r2388 r2389  
    131131 
    132132         size_t computeAttributesHash( MPI_Comm comm ); 
     133         void renameAttributesBeforeWriting(CAxis* writtenAxis=NULL); 
    133134 
    134135         size_t getGlobalWrittenSize(void) ; 
  • XIOS3/trunk/src/node/domain.cpp

    r2388 r2389  
    18161816     return distributedHash + globalHash; 
    18171817   } 
     1818   
     1819   void CDomain::renameAttributesBeforeWriting(CDomain* writtenDomain) 
     1820   { 
     1821     if (writtenDomain!=NULL) 
     1822     { 
     1823       this->name = writtenDomain->getDomainOutputName(); 
     1824       this->lon_name = writtenDomain->lon_name; 
     1825       this->lat_name = writtenDomain->lat_name; 
     1826       if (this->type == CDomain::type_attr::unstructured) 
     1827       { 
     1828         this->dim_i_name = writtenDomain->dim_i_name; 
     1829         this->dim_j_name = writtenDomain->dim_j_name; 
     1830       } 
     1831     } 
     1832     else 
     1833     { 
     1834       this->name =  this->getId(); 
     1835       this->lon_name = "lon_"+this->getId(); 
     1836       this->lat_name = "lat_"+this->getId(); 
     1837       if (this->type == CDomain::type_attr::unstructured) 
     1838       { 
     1839         this->dim_i_name = "cell_"+this->getId(); 
     1840         this->dim_j_name = "nvertex_"+this->getId(); 
     1841       } 
     1842     } 
     1843   } 
    18181844 
    18191845   void CDomain::initializeLocalElement(void) 
  • XIOS3/trunk/src/node/domain.hpp

    r2388 r2389  
    9292 
    9393         size_t computeAttributesHash( MPI_Comm comm ); 
     94         void renameAttributesBeforeWriting(CDomain* writtenDomain=NULL); 
    9495          
    9596      ////////////////////////// 
Note: See TracChangeset for help on using the changeset viewer.