Fix warning unused-variable

This commit is contained in:
Antonella Ritorto 2024-01-26 12:16:20 +01:00
parent 921b7b577a
commit b9124a2688
2 changed files with 0 additions and 3 deletions

View File

@ -370,7 +370,6 @@ updateNum(const std::string& name, std::vector<T>& numbers, std::size_t num_regi
if (!eclState_.fieldProps().has_int(name))
return;
unsigned numElems = gridView_.size(/*codim=*/0);
std::function<void(T, int)> valueCheck = [num_regions,name](T fieldPropValue, [[maybe_unused]] int fieldPropIdx) {
if ( fieldPropValue > (int)num_regions) {
throw std::runtime_error("Values larger than maximum number of regions "

View File

@ -101,8 +101,6 @@ template<class Grid, class GridView, class ElementMapper, class Scalar>
void EclGenericThresholdPressure<Grid,GridView,ElementMapper,Scalar>::
finishInit()
{
unsigned numElements = gridView_.size(/*codim=*/0);
const auto& simConfig = eclState_.getSimulationConfig();
enableThresholdPressure_ = simConfig.useThresholdPressure();