Changeset 872
- Timestamp:
- 06/09/16 17:36:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/grid_transformation.cpp
r871 r872 136 136 { 137 137 std::vector<CAxis*> axisListDestP = gridDestination_->getAxis(); 138 std::vector<CAxis*> axisListSrcP = gridSource_->getAxis(); 138 139 if (!axisListDestP.empty()) 139 140 { 141 // If source and destination grid share the same axis 142 if (axisListDestP[elementPosition2AxisPositionInGrid_[axisPositionInGrid]] == 143 axisListSrcP[elementPosition2AxisPositionInGrid_[axisPositionInGrid]]) return; 144 140 145 if (axisListDestP[elementPosition2AxisPositionInGrid_[axisPositionInGrid]]->hasTransformation()) 141 146 { … … 165 170 { 166 171 std::vector<CDomain*> domListDestP = gridDestination_->getDomains(); 172 std::vector<CDomain*> domListSrcP = gridSource_->getDomains(); 167 173 if (!domListDestP.empty()) 168 174 { 175 // If source and destination grid share the same domain 176 if (domListDestP[elementPosition2DomainPositionInGrid_[domPositionInGrid]] == 177 domListSrcP[elementPosition2DomainPositionInGrid_[domPositionInGrid]]) return; 178 169 179 if (domListDestP[elementPosition2DomainPositionInGrid_[domPositionInGrid]]->hasTransformation()) 170 180 { … … 291 301 { 292 302 tempGridDests_.resize(0); 293 // tmpGridDestination_ = tempGridDests_[nbTransformation];294 // return;295 303 } 296 304 std::vector<CAxis*> axisListDestP = gridDestination_->getAxis(); … … 346 354 { 347 355 tempGridSrcs_.resize(0); 348 // gridSource_ = tempGridSrcs_[nbTransformation];349 // return;350 356 } 351 357 … … 406 412 } 407 413 } 408 409 // for (int idx = 0; idx < axisListSrcP.size(); ++idx)410 // {411 // CAxis* axis = CAxis::createAxis();412 // if (axisIndex != idx) axis->axis_ref.setValue(axisListSrcP[idx]->getId());413 // else axis->axis_ref.setValue(axisListDestP[idx]->getId());414 // axis->solveRefInheritance(true);415 // axis->checkAttributesOnClient();416 // axisSrc.push_back(axis);417 // }418 //419 // for (int idx = 0; idx < domListSrcP.size(); ++idx)420 // {421 // CDomain* domain = CDomain::createDomain();422 // if (domainIndex != idx) domain->domain_ref.setValue(domListSrcP[idx]->getId());423 // else domain->domain_ref.setValue(domListDestP[idx]->getId());424 // domain->solveRefInheritance(true);425 // domain->checkAttributesOnClient();426 // domainSrc.push_back(domain);427 // }428 414 429 415 gridSource_ = CGrid::createGrid(domainSrc, axisSrc, tmpGridDestination_->axis_domain_order);
Note: See TracChangeset
for help on using the changeset viewer.