- Timestamp:
- 05/23/17 16:32:26 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/transformation/domain_algorithm_zoom.cpp
r1129 r1144 132 132 correct index be extracted 133 133 */ 134 void CDomainAlgorithmZoom::updateDomainDestinationMask()135 {136 int niMask = domainDest_->ni.getValue();137 int iBeginMask = domainDest_->ibegin.getValue();138 int njMask = domainDest_->nj.getValue();139 int jBeginMask = domainDest_->jbegin.getValue();140 int niGlob = domainDest_->ni_glo.getValue();141 int globalIndexMask = 0;134 // void CDomainAlgorithmZoom::updateDomainDestinationMask() 135 // { 136 // int niMask = domainDest_->ni.getValue(); 137 // int iBeginMask = domainDest_->ibegin.getValue(); 138 // int njMask = domainDest_->nj.getValue(); 139 // int jBeginMask = domainDest_->jbegin.getValue(); 140 // int niGlob = domainDest_->ni_glo.getValue(); 141 // int globalIndexMask = 0; 142 142 143 TransformationIndexMap& transMap = this->transformationMapping_[0];144 TransformationIndexMap::const_iterator ite = (transMap).end();145 for (int j = 0; j < njMask; ++j)146 {147 for (int i = 0; i < niMask; ++i)148 {149 globalIndexMask = (j+jBeginMask) * niGlob + (i + iBeginMask);150 if (transMap.find(globalIndexMask) == ite)151 (domainDest_->mask_1d)(i+j*niMask) = false;152 }153 }154 }143 // TransformationIndexMap& transMap = this->transformationMapping_[0]; 144 // TransformationIndexMap::const_iterator ite = (transMap).end(); 145 // for (int j = 0; j < njMask; ++j) 146 // { 147 // for (int i = 0; i < niMask; ++i) 148 // { 149 // globalIndexMask = (j+jBeginMask) * niGlob + (i + iBeginMask); 150 // if (transMap.find(globalIndexMask) == ite) 151 // (domainDest_->mask_1d)(i+j*niMask) = false; 152 // } 153 // } 154 // } 155 155 156 156 }
Note: See TracChangeset
for help on using the changeset viewer.