- Timestamp:
- 04/08/22 11:58:08 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/domain_algorithm/domain_algorithm_extract.cpp
r2270 r2322 141 141 domainDest_->j_index.resize(niDest*njDest); 142 142 143 if (!domainSrc_->nvertex.isEmpty()) domainDest_->nvertex = domainSrc_->nvertex ; 144 143 145 // Resize lon/lat, bounds, area arrays to local domain dimensions 144 146 if (!domainSrc_->lonvalue_1d.isEmpty()) … … 149 151 domainDest_->latvalue_1d.resize(njDest); 150 152 } 151 else if (domainDest_->type == CDomain::type_attr::unstructured)152 { 153 domainDest_->lonvalue_1d.resize(niDest );154 domainDest_->latvalue_1d.resize(niDest );153 else 154 { 155 domainDest_->lonvalue_1d.resize(niDest*njDest); 156 domainDest_->latvalue_1d.resize(niDest*njDest); 155 157 } 156 158 } … … 165 167 { 166 168 domainDest_->bounds_lon_2d.resize(domainDest_->nvertex, niDest, njDest); 167 domainDest_->bounds_l on_2d.resize(domainDest_->nvertex, niDest, njDest);169 domainDest_->bounds_lat_2d.resize(domainDest_->nvertex, niDest, njDest); 168 170 } 169 171 else if (!domainSrc_->bounds_lon_1d.isEmpty()) 170 172 { 171 173 domainDest_->bounds_lon_1d.resize(domainDest_->nvertex, niDest); 172 domainDest_->bounds_l on_1d.resize(domainDest_->nvertex, niDest);174 domainDest_->bounds_lat_1d.resize(domainDest_->nvertex, niDest); 173 175 } 174 176 } … … 272 274 domainDest_->latvalue_1d(jIdxDestLocal) = domainSrc_->latvalue_1d(jIdxSrcLocal); 273 275 } 274 else if (domainDest_->type == CDomain::type_attr::unstructured)276 else 275 277 { 276 278 domainDest_->lonvalue_1d(countDest) = domainSrc_->lonvalue_1d(countSrc); … … 280 282 else if (!domainDest_->lonvalue_2d.isEmpty()) 281 283 { 282 if (domainDest_->type == CDomain::type_attr::curvilinear) 283 { 284 domainDest_->lonvalue_2d(iIdxDestLocal, jIdxDestLocal) = domainSrc_->lonvalue_2d(iIdxSrcLocal,jIdxSrcLocal); 285 domainDest_->latvalue_2d(iIdxDestLocal, jIdxDestLocal) = domainSrc_->latvalue_2d(iIdxSrcLocal,jIdxSrcLocal); 286 } 284 domainDest_->lonvalue_2d(iIdxDestLocal, jIdxDestLocal) = domainSrc_->lonvalue_2d(iIdxSrcLocal,jIdxSrcLocal); 285 domainDest_->latvalue_2d(iIdxDestLocal, jIdxDestLocal) = domainSrc_->latvalue_2d(iIdxSrcLocal,jIdxSrcLocal); 287 286 } 288 287
Note: See TracChangeset
for help on using the changeset viewer.