Skip to content

Commit 9a2bff0

Browse files
authored
Remove final on Fapply, Fsmooth, FFlux, normalize, supportNSolve (#4727)
to allow for overriding.
1 parent 124c034 commit 9a2bff0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Src/LinearSolvers/MLMG/AMReX_MLABecLaplacian.H

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ public:
154154
void prepareForSolve () override;
155155
[[nodiscard]] bool isSingular (int amrlev) const override { return m_is_singular[amrlev]; }
156156
[[nodiscard]] bool isBottomSingular () const override { return m_is_singular[0]; }
157-
void Fapply (int amrlev, int mglev, MF& out, const MF& in) const final;
158-
void Fsmooth (int amrlev, int mglev, MF& sol, const MF& rhs, int redblack) const final;
157+
void Fapply (int amrlev, int mglev, MF& out, const MF& in) const override;
158+
void Fsmooth (int amrlev, int mglev, MF& sol, const MF& rhs, int redblack) const override;
159159
void FFlux (int amrlev, const MFIter& mfi,
160160
const Array<FAB*,AMREX_SPACEDIM>& flux,
161161
const FAB& sol, Location /* loc */,
162-
int face_only=0) const final;
162+
int face_only=0) const override;
163163

164-
void normalize (int amrlev, int mglev, MF& mf) const final;
164+
void normalize (int amrlev, int mglev, MF& mf) const override;
165165

166166
[[nodiscard]] RT getAScalar () const final { return m_a_scalar; }
167167
[[nodiscard]] RT getBScalar () const final { return m_b_scalar; }
@@ -172,7 +172,7 @@ public:
172172

173173
[[nodiscard]] std::unique_ptr<MLLinOpT<MF>> makeNLinOp (int /*grid_size*/) const final;
174174

175-
[[nodiscard]] bool supportNSolve () const final;
175+
[[nodiscard]] bool supportNSolve () const override;
176176

177177
void copyNSolveSolution (MF& dst, MF const& src) const final;
178178

0 commit comments

Comments
 (0)