Changeset 2482 for XIOS3/dev/XIOS_ATTACHED/src/transformation/domain_algorithm/domain_algorithm_extract.cpp
- Timestamp:
- 03/28/23 16:42:11 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/dev/XIOS_ATTACHED/src/transformation/domain_algorithm/domain_algorithm_extract.cpp
r2340 r2482 76 76 domainDestination->bounds_lon_2d.reset(); 77 77 domainDestination->bounds_lat_2d.reset(); 78 domainDestination->area.reset(); 78 domainDestination->area_1d.reset(); 79 domainDestination->area_2d.reset(); 79 80 domainDestination->radius.reset(); 80 81 … … 175 176 } 176 177 } 177 if (domainSrc_->hasArea) domainDest_->area.resize(niDest,njDest); 178 178 if (domainSrc_->hasArea) 179 { 180 if (!domainSrc_->area_2d.isEmpty()) domainDest_->area_2d.resize(niDest,njDest); 181 else if (!domainSrc_->area_1d.isEmpty()) domainDest_->area_1d.resize(niDest*njDest); 182 } 179 183 // Set attributes required to define domainDestination->localElement_ and associated views, full and workflow) 180 184 CArray<size_t,1> sourceGlobalIdx = domainSource->getLocalElement()->getGlobalIndex(); … … 241 245 242 246 // area 243 if (!domainSrc_->area.isEmpty()) 244 { 245 domainDest_->area(iIdxDestLocal,jIdxDestLocal) = domainSrc_->area(iIdxSrcLocal,jIdxSrcLocal); 246 } 247 if (!domainSrc_->area_2d.isEmpty()) domainDest_->area_2d(iIdxDestLocal,jIdxDestLocal) = domainSrc_->area_2d(iIdxSrcLocal,jIdxSrcLocal); 248 else if (!domainSrc_->area_1d.isEmpty()) domainDest_->area_1d(countDest) = domainSrc_->area_1d(countSrc); 247 249 248 250 // bounds
Note: See TracChangeset
for help on using the changeset viewer.