Commit 6884ba90 authored by lh1887's avatar lh1887
Browse files

Rename local class

parent 2e6cadde
Pipeline #6675 passed with stage
in 2 minutes and 33 seconds
......@@ -221,7 +221,7 @@ auto coordinateRestriction(const ShiftedSmoothFunctional<M,V,PHI, PHIPRIME, PHI2
* \tparam R Range type
*/
template<class M, class V, class PHIPRIME, class R>
class EnergyDirectionalRestriction
class SmoothFunctionalDirectionalRestriction
{
public:
......@@ -233,7 +233,7 @@ public:
using Range = R;
EnergyDirectionalRestriction(const GlobalMatrix& matrix, const GlobalVector& linearTerm, const GlobalVector& weights, const GlobalVector& origin, const GlobalVector& direction, PHIPRIME dphi) :
SmoothFunctionalDirectionalRestriction(const GlobalMatrix& matrix, const GlobalVector& linearTerm, const GlobalVector& weights, const GlobalVector& origin, const GlobalVector& direction, PHIPRIME dphi) :
origin_(origin),
direction_(direction),
weights_(weights),
......@@ -245,12 +245,12 @@ public:
quadraticPart_ = temp*direction; //quadr: <Ax,x>
linearPart_ = -(linearTerm*direction) + temp*origin; //-<b,x>+ <Ax,u>
}
EnergyDirectionalRestriction() {
SmoothFunctionalDirectionalRestriction() {
}
Range operator()(const Vector& v) const
{
DUNE_THROW(Dune::NotImplemented, "Evaluation of EnergyDirectionalRestriction not implemented");
DUNE_THROW(Dune::NotImplemented, "Evaluation of SmoothFunctionalDirectionalRestriction not implemented");
}
const Matrix& quadraticPart() const
......@@ -385,9 +385,9 @@ public:
}
friend auto directionalRestriction(const SmoothFunctional& f, const Vector& origin, const Vector& direction)
-> EnergyDirectionalRestriction<Matrix, Vector, PHIPRIME, Range>
-> SmoothFunctionalDirectionalRestriction<Matrix, Vector, PHIPRIME, Range>
{
return EnergyDirectionalRestriction<Matrix, Vector, PHIPRIME,Range>(f.matrix_.get(), f.b_.get(), f.w_.get(), origin, direction, f.dphi_);
return SmoothFunctionalDirectionalRestriction<Matrix, Vector, PHIPRIME,Range>(f.matrix_.get(), f.b_.get(), f.w_.get(), origin, direction, f.dphi_);
}
friend auto shift(const SmoothFunctional& f, const Vector& origin)
......
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