Commit 45d5d6ca authored by Santiago Ospina's avatar Santiago Ospina

implemented local keys for volume raviart thomas finite elements

parent 37153005
......@@ -27,7 +27,10 @@ class VolumeRaviartThomasLocalCoefficients<DF,RF,k,dim,Dune::GeometryType::simpl
public:
VolumeRaviartThomasLocalCoefficients()
{}
{
for (int i = 0; i < size(); ++i)
li[i] = LocalKey(0,0,i);
}
constexpr std::size_t size() const
{
......@@ -36,8 +39,7 @@ public:
const LocalKey& localKey (std::size_t i) const
{
DUNE_THROW(Dune::NotImplemented,
"localKey for VolumeRaviartThomasLocalCoefficients not implemented!");
return li[i];
}
private:
......@@ -51,7 +53,10 @@ class VolumeRaviartThomasLocalCoefficients<DF,RF,k,dim,Dune::GeometryType::cube>
public:
VolumeRaviartThomasLocalCoefficients()
{}
{
for (int i = 0; i < size(); ++i)
li[i] = LocalKey(0,0,i);
}
constexpr std::size_t size() const
{
......@@ -60,8 +65,7 @@ public:
const LocalKey& localKey (std::size_t i) const
{
DUNE_THROW(Dune::NotImplemented,
"localKey for VolumeRaviartThomasLocalCoefficients not implemented!");
return li[i];
}
private:
......
Markdown is supported
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