Changeset 927 for XIOS/trunk/src/node/axis.cpp
- Timestamp:
- 09/08/16 11:18:51 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/axis.cpp
r906 r927 24 24 : CObjectTemplate<CAxis>() 25 25 , CAxisAttributes(), isChecked(false), relFiles(), areClientAttributesChecked_(false) 26 , isClientAfterTransformationChecked(false) 26 27 , isDistributed_(false), hasBounds_(false), isCompressible_(false) 27 28 , numberWrittenIndexes_(0), totalNumberWrittenIndexes_(0), offsetWrittenIndexes_(0) … … 33 34 : CObjectTemplate<CAxis>(id) 34 35 , CAxisAttributes(), isChecked(false), relFiles(), areClientAttributesChecked_(false) 36 , isClientAfterTransformationChecked(false) 35 37 , isDistributed_(false), hasBounds_(false), isCompressible_(false) 36 38 , numberWrittenIndexes_(0), totalNumberWrittenIndexes_(0), offsetWrittenIndexes_(0) … … 362 364 } 363 365 366 void CAxis::checkAttributesOnClientAfterTransformation(const std::vector<int>& globalDim, int orderPositionInGrid, 367 CServerDistributionDescription::ServerDistributionType distType) 368 { 369 CContext* context=CContext::getCurrent() ; 370 371 if (this->isClientAfterTransformationChecked) return; 372 if (context->hasClient) 373 { 374 if (n.getValue() != n_glo.getValue()) computeConnectedServer(globalDim, orderPositionInGrid, distType); 375 } 376 377 this->isClientAfterTransformationChecked = true; 378 } 379 364 380 // Send all checked attributes to server 365 381 void CAxis::sendCheckedAttributes(const std::vector<int>& globalDim, int orderPositionInGrid, … … 367 383 { 368 384 if (!this->areClientAttributesChecked_) checkAttributesOnClient(); 385 if (!this->isClientAfterTransformationChecked) checkAttributesOnClientAfterTransformation(globalDim, orderPositionInGrid, distType); 369 386 CContext* context = CContext::getCurrent(); 370 387 … … 373 390 { 374 391 sendServerAttribut(globalDim, orderPositionInGrid, distType); 375 if (hasValue) sendValue( globalDim, orderPositionInGrid, distType);392 if (hasValue) sendValue(); 376 393 } 377 394 … … 379 396 } 380 397 381 void CAxis::sendValue(const std::vector<int>& globalDim, int orderPositionInGrid, 382 CServerDistributionDescription::ServerDistributionType distType) 398 void CAxis::sendValue() 383 399 { 384 400 if (n.getValue() == n_glo.getValue()) 385 {386 401 sendNonDistributedValue(); 387 }388 402 else 389 {390 computeConnectedServer(globalDim, orderPositionInGrid, distType);391 403 sendDistributedValue(); 392 }393 404 } 394 405
Note: See TracChangeset
for help on using the changeset viewer.