Changeset 1415
- Timestamp:
- 01/31/18 14:23:58 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/io/nc4_data_output.cpp
r1392 r1415 115 115 else latName = domain->lat_name; 116 116 117 dimXid = lonName .append(appendDomid);118 dimYid = latName .append(appendDomid);117 dimXid = lonName+appendDomid; 118 dimYid = latName+appendDomid; 119 119 break; 120 120 } … … 212 212 case CDomain::type_attr::curvilinear : 213 213 dim0.push_back(dimYid); dim0.push_back(dimXid); 214 lonid = lonName .append(appendDomid);215 latid = latName .append(appendDomid);214 lonid = lonName+appendDomid; 215 latid = latName+appendDomid; 216 216 break ; 217 217 case CDomain::type_attr::rectilinear : 218 lonid = lonName .append(appendDomid);219 latid = latName .append(appendDomid);218 lonid = lonName+appendDomid; 219 latid = latName+appendDomid; 220 220 dim0.push_back(dimYid); 221 221 dim1.push_back(dimXid); … … 355 355 case CDomain::type_attr::curvilinear : 356 356 dim0.push_back(dimYid); dim0.push_back(dimXid); 357 lonid = lonName .append(appendDomid);358 latid = latName .append(appendDomid);357 lonid = lonName+appendDomid; 358 latid = latName+appendDomid; 359 359 SuperClassWriter::addVariable(latid, typePrec, dim0); 360 360 SuperClassWriter::addVariable(lonid, typePrec, dim0); … … 364 364 dim0.push_back(dimYid); 365 365 dim1.push_back(dimXid); 366 lonid = lonName .append(appendDomid);367 latid = latName .append(appendDomid);366 lonid = lonName+appendDomid; 367 latid = latName+appendDomid; 368 368 SuperClassWriter::addVariable(latid, typePrec, dim0); 369 369 SuperClassWriter::addVariable(lonid, typePrec, dim1); … … 1042 1042 SuperClassWriter::addDimension(dimXid, domain->zoom_ni); 1043 1043 1044 lonid = lonName .append(appendDomid);1045 latid = latName .append(appendDomid);1044 lonid = lonName+appendDomid; 1045 latid = latName+appendDomid; 1046 1046 bounds_lonid = "bounds_"+lonName+appendDomid; 1047 1047 bounds_latid = "bounds_"+latName+appendDomid; … … 1096 1096 case (ONE_FILE) : 1097 1097 { 1098 lonid = lonName .append(appendDomid);1099 latid = latName .append(appendDomid);1098 lonid = lonName+appendDomid; 1099 latid = latName+appendDomid; 1100 1100 bounds_lonid = "bounds_"+lonName+appendDomid; 1101 1101 bounds_latid = "bounds_"+latName+appendDomid; … … 1730 1730 StdString lonName,latName ; 1731 1731 1732 if (domain->lon_name.isEmpty()) lonName = "lon"; 1732 if (domain->lon_name.isEmpty()) 1733 { 1734 if (domain->type==CDomain::type_attr::curvilinear) lonName = "nav_lon"; 1735 else lonName = "lon"; 1736 } 1733 1737 else lonName = domain->lon_name; 1734 1738 1735 if (domain->lat_name.isEmpty()) latName = "lat"; 1739 if (domain->lat_name.isEmpty()) 1740 { 1741 if (domain->type==CDomain::type_attr::curvilinear) latName = "nav_lat"; 1742 else latName = "lat"; 1743 } 1736 1744 else latName = domain->lat_name; 1737 1745 … … 1752 1760 dimIdList.push_back(dimYid); 1753 1761 } 1754 dimCoordList.push_back(lonName .append(appendDomId));1755 dimCoordList.push_back(latName .append(appendDomId));1762 dimCoordList.push_back(lonName+appendDomId); 1763 dimCoordList.push_back(latName+appendDomId); 1756 1764 break ; 1757 1765 case CDomain::type_attr::rectilinear: 1758 1766 if (!compressedOutput || !domain->isCompressible()) 1759 1767 { 1760 dimXid = lonName .append(appendDomId);1768 dimXid = lonName+appendDomId; 1761 1769 dimIdList.push_back(dimXid); 1762 dimYid = latName .append(appendDomId);1770 dimYid = latName+appendDomId; 1763 1771 dimIdList.push_back(dimYid); 1764 1772 } … … 1770 1778 dimXid = StdString("cell").append(appendDomId); 1771 1779 dimIdList.push_back(dimXid); 1772 dimCoordList.push_back(lonName .append(appendDomId));1773 dimCoordList.push_back(latName .append(appendDomId));1780 dimCoordList.push_back(lonName+appendDomId); 1781 dimCoordList.push_back(latName+appendDomId); 1774 1782 } 1775 1783 else
Note: See TracChangeset
for help on using the changeset viewer.