mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
removed more warings and a bug for strange index settings
This commit is contained in:
parent
cced62edc0
commit
bec5a233eb
@ -134,7 +134,7 @@ namespace Amg
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class Vector, class GridView, class ElementContext, class Model>
|
template <class Vector, class GridView, class ElementContext, class Model>
|
||||||
void getTrueImpesWeightsAnalytic(int pressureVarIndex,
|
void getTrueImpesWeightsAnalytic(int /*pressureVarIndex*/,
|
||||||
Vector& weights,
|
Vector& weights,
|
||||||
const GridView& gridView,
|
const GridView& gridView,
|
||||||
ElementContext& elemCtx,
|
ElementContext& elemCtx,
|
||||||
@ -155,7 +155,6 @@ namespace Amg
|
|||||||
|
|
||||||
using PrimaryVariables = typename Model::PrimaryVariables;
|
using PrimaryVariables = typename Model::PrimaryVariables;
|
||||||
using VectorBlockType = typename Vector::block_type;
|
using VectorBlockType = typename Vector::block_type;
|
||||||
constexpr int numEq = VectorBlockType::size();
|
|
||||||
using Evaluation =
|
using Evaluation =
|
||||||
typename std::decay_t<decltype(model.localLinearizer(threadId).localResidual().residual(0))>::block_type;
|
typename std::decay_t<decltype(model.localLinearizer(threadId).localResidual().residual(0))>::block_type;
|
||||||
using Toolbox = MathToolbox<Evaluation>;
|
using Toolbox = MathToolbox<Evaluation>;
|
||||||
@ -173,7 +172,7 @@ namespace Amg
|
|||||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
||||||
unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(
|
unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(
|
||||||
FluidSystem::solventComponentIndex(FluidSystem::waterPhaseIdx));
|
FluidSystem::solventComponentIndex(FluidSystem::waterPhaseIdx));
|
||||||
bweights[FluidSystem::waterPhaseIdx]
|
bweights[activeCompIdx]
|
||||||
= Toolbox::template decay<LhsEval>(1 / fs.invB(FluidSystem::waterPhaseIdx));
|
= Toolbox::template decay<LhsEval>(1 / fs.invB(FluidSystem::waterPhaseIdx));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user