mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix warning unused-variable
This commit is contained in:
parent
921b7b577a
commit
b9124a2688
@ -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 "
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user