Changeset 2389 for XIOS3/trunk/src/node/domain.cpp
- Timestamp:
- 07/27/22 11:49:51 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/node/domain.cpp
r2388 r2389 1816 1816 return distributedHash + globalHash; 1817 1817 } 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 } 1818 1844 1819 1845 void CDomain::initializeLocalElement(void)
Note: See TracChangeset
for help on using the changeset viewer.