res += ptsInCell[spaceDim*k+i] * shapeFunc->getIJ(iGPt,spaceDim*k+j);
jacobian[ i ][ j ] = res;
}
- arrPtr[offsetPtr[*cellId]+iGPt]=jacobian.determinant();
+ arrPtr[offsetPtr[*cellId]+iGPt]=jacobian.determinant()*loc.getWeight(iGPt);
}
}
}
return _gauss_coord[gaussPtIdInCell*dim+comp];
}
-double MEDCouplingGaussLocalization::getWeight(int gaussPtIdInCell, double newVal) const
+double MEDCouplingGaussLocalization::getWeight(int gaussPtIdInCell) const
{
checkCoherencyOfRequest(gaussPtIdInCell,0);
return _weight[gaussPtIdInCell];
MEDCOUPLING_EXPORT const std::vector<double>& getGaussCoords() const { return _gauss_coord; }
MEDCOUPLING_EXPORT double getGaussCoord(int gaussPtIdInCell, int comp) const;
MEDCOUPLING_EXPORT const std::vector<double>& getWeights() const { return _weight; }
- MEDCOUPLING_EXPORT double getWeight(int gaussPtIdInCell, double newVal) const;
+ MEDCOUPLING_EXPORT double getWeight(int gaussPtIdInCell) const;
MEDCOUPLING_EXPORT void setRefCoord(int ptIdInCell, int comp, double newVal);
MEDCOUPLING_EXPORT void setGaussCoord(int gaussPtIdInCell, int comp, double newVal);
MEDCOUPLING_EXPORT void setWeight(int gaussPtIdInCell, double newVal);
const std::vector<double>& getGaussCoords() const;
double getGaussCoord(int gaussPtIdInCell, int comp) const;
const std::vector<double>& getWeights() const;
- double getWeight(int gaussPtIdInCell, double newVal) const;
+ double getWeight(int gaussPtIdInCell) const;
void setRefCoord(int ptIdInCell, int comp, double newVal);
void setGaussCoord(int gaussPtIdInCell, int comp, double newVal);
void setWeight(int gaussPtIdInCell, double newVal);