------------------------------------------------------------------------ r31082 | whitlocb | 2017-06-16 00:19:15 +0200 (Fri, 16 Jun 2017) | 1 line Fix for GCC 7 Index: databases/Vs/VsStaggeredField.C =================================================================== --- databases/Vs/VsStaggeredField.C (revision 31081) +++ databases/Vs/VsStaggeredField.C (revision 31082) @@ -26,10 +26,13 @@ this->indexOrder = VsSchema::compMajorCKey; this->centering = VsSchema::nodalCenteringKey; +#if 0 + // There is no clear method under GCC 7. What good would it do here anyway? this->oriCellDims.clear(); this->oriCellDimProd.clear(); this->newCellDims.clear(); this->newCellDimProd.clear(); +#endif } template @@ -136,7 +139,7 @@ // iterate over subgrid for (size_t subBigIndx = 0; subBigIndx < this->numNeighbors; ++subBigIndx) { std::valarray subCellInds = this->getSubCellIndexSet(subBigIndx); - std::valarray newCellInds = oriCellInds*this->numNeighbors + subCellInds; + std::valarray newCellInds = oriCellInds*static_cast(this->numNeighbors) + subCellInds; size_t newBigIndx = this->getNewBigIndex(newCellInds); std::valarray xi = std::valarray(subCellInds) / this->twoPowSubRes; this->setNewFieldVals(newBigIndx, xi, sigmaVals, neighVals, dataPtr); @@ -147,7 +150,7 @@ template std::valarray VsStaggeredField::getOriCellIndexSet(size_t bigIndex) const { - return (bigIndex / this->oriCellDimProd) % this->oriCellDims; + return (bigIndex / static_cast(this->oriCellDimProd)) % this->oriCellDims; } template ------------------------------------------------------------------------