Commit 39af220a authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[mpfa][iavol] use typedef for local index pair

parent 560cbc0e
......@@ -277,7 +277,7 @@ public:
DUNE_THROW(Dune::InvalidStateException, "Could not find the local scv face in the interaction volume for the given scvf with index: " << scvf.index());
}
DynamicVector getTransmissibilities(const std::pair<LocalIndexType, bool>& localIndexPair) const
DynamicVector getTransmissibilities(const LocalIndexPair& localIndexPair) const
{
auto tij = T_[localIndexPair.first];
......@@ -286,7 +286,7 @@ public:
return tij;
}
Scalar getNeumannFlux(const std::pair<LocalIndexType, bool>& localIndexPair) const
Scalar getNeumannFlux(const LocalIndexPair& localIndexPair) const
{
if (fluxScvfIndexSet_().size() == 0)
return 0.0;
......
......@@ -102,6 +102,7 @@ class CCMpfaInteractionVolumeImplementation<TypeTag, MpfaMethods::oMethodFps> :
public:
using typename ParentType::LocalIndexType;
using typename ParentType::LocalIndexPair;
using typename ParentType::Seed;
CCMpfaInteractionVolumeImplementation(const Seed& seed,
......@@ -142,7 +143,7 @@ public:
this->T_ += mc.BF;
}
Scalar getNeumannFlux(const std::pair<LocalIndexType, bool>& localIndexPair) const
Scalar getNeumannFlux(const LocalIndexPair& localIndexPair) const
{ return 0.0; }
private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment