Commit 5e00a895 authored by Müller, Felix's avatar Müller, Felix

Remove makeLocalToGlobalBasisAdapter

parent 7bdefbc6
......@@ -268,7 +268,7 @@ public:
auto&& nodeToRangeEntry = this->globalFunction_.nodeToRangeEntry_;
for_each_leaf_node(*this->subTree_, [&](auto const& node, auto const& tp)
{
auto localBasis = makeLocalToGlobalBasisAdapter(node, this->geometry());
LocalToGlobalBasisAdapter localBasis(node, this->geometry());
auto const& gradients = localBasis.gradientsAt(x);
// Get range entry associated to this node
......@@ -334,7 +334,7 @@ private:
auto&& node = *this->subTree_;
auto localBasis = makeLocalToGlobalBasisAdapter(node.child(0), this->geometry());
LocalToGlobalBasisAdapter localBasis(node.child(0), this->geometry());
auto const& gradients = localBasis.gradientsAt(x);
auto re = Dune::Functions::flatVectorView(dy);
......@@ -377,7 +377,7 @@ public:
auto&& nodeToRangeEntry = this->globalFunction_.nodeToRangeEntry_;
for_each_leaf_node(*this->subTree_, [&](auto const& node, auto const& tp)
{
auto localBasis = makeLocalToGlobalBasisAdapter(node, this->geometry());
LocalToGlobalBasisAdapter localBasis(node, this->geometry());
auto const& partial = localBasis.partialsAt(x, comp);
// Get range entry associated to this node
......
......@@ -43,7 +43,7 @@ namespace AMDiS
static_assert(Node::isLeaf, "Operator can be applied to Leaf-Nodes only.");
auto const& quad = this->getQuadratureRule(contextGeo.type(), node);
auto localBasis = makeLocalToGlobalBasisAdapter(node, contextGeo.geometry());
LocalToGlobalBasisAdapter localBasis(node, contextGeo.geometry());
for (std::size_t iq = 0; iq < quad.size(); ++iq) {
// Position of the current quadrature point in the reference element
......
......@@ -56,7 +56,7 @@ namespace AMDiS
std::size_t rowSize = rowLocalFE.size();
NodeQuadCache<RN> rowCache(rowLocalFE.localBasis());
auto colLocalBasis = makeLocalToGlobalBasisAdapter(colNode, contextGeo.geometry());
LocalToGlobalBasisAdapter colLocalBasis(colNode, contextGeo.geometry());
auto const& shapeValuesCache = rowCache.evaluateFunctionAtQP(contextGeo, quad);
for (std::size_t iq = 0; iq < quad.size(); ++iq) {
// Position of the current quadrature point in the reference element
......
......@@ -48,8 +48,8 @@ namespace AMDiS
auto const& quad = this->getQuadratureRule(contextGeo.type(), rowNode, colNode);
auto rowLocalBasis = makeLocalToGlobalBasisAdapter(rowNode, contextGeo.geometry());
auto colLocalBasis = makeLocalToGlobalBasisAdapter(colNode, contextGeo.geometry());
LocalToGlobalBasisAdapter rowLocalBasis(rowNode, contextGeo.geometry());
LocalToGlobalBasisAdapter colLocalBasis(colNode, contextGeo.geometry());
for (std::size_t iq = 0; iq < quad.size(); ++iq) {
// Position of the current quadrature point in the reference element
......
......@@ -195,13 +195,4 @@ namespace AMDiS
std::size_t size_;
};
/// Generator function for the \ref LocalToGlobalBasisAdapter. \relates LocalToGlobalBasisAdapter.
template <class BasisNode, class Geometry>
LocalToGlobalBasisAdapter<BasisNode, Geometry>
makeLocalToGlobalBasisAdapter(BasisNode const& node, Geometry const& geometry)
{
return LocalToGlobalBasisAdapter<BasisNode, Geometry>{node, geometry};
}
} // namespace AMDiS
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