Skip to content

Commit 6a6e2c3

Browse files
committed
consistently use override
1 parent 5a99859 commit 6a6e2c3

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

AdvectionDiffusion.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -156,65 +156,65 @@ class AdvectionDiffusion : public IntegrandBase
156156
double getElementTau(size_t e) const { return e > tauE.size() ? 0 : tauE(e); }
157157

158158
//! \brief Defines which FE quantities are needed by the integrand.
159-
virtual int getIntegrandType() const;
159+
int getIntegrandType() const override;
160160

161161
using IntegrandBase::getLocalIntegral;
162162
//! \brief Returns a local integral container for the given element.
163163
//! \param[in] nen Number of nodes on element
164164
//! \param[in] neumann Whether or not we are assembling Neumann BCs
165-
virtual LocalIntegral* getLocalIntegral(size_t nen, size_t,
166-
bool neumann) const;
165+
LocalIntegral* getLocalIntegral(size_t nen, size_t,
166+
bool neumann) const override;
167167

168168
using IntegrandBase::finalizeElement;
169169
//! \brief Finalizes the element quantities after the numerical integration.
170170
//! \details This method is invoked once for each element, after the numerical
171171
//! integration loop over interior points is finished and before the resulting
172172
//! element quantities are assembled into their system level equivalents.
173-
virtual bool finalizeElement(LocalIntegral& elmInt);
173+
bool finalizeElement(LocalIntegral& elmInt) override;
174174

175175
using IntegrandBase::evalInt;
176176
//! \brief Evaluates the integrand at an interior point.
177177
//! \param elmInt The local integral object to receive the contributions
178178
//! \param[in] fe Finite element data of current integration point
179179
//! \param[in] X Cartesian coordinates of current integration point
180-
virtual bool evalInt(LocalIntegral& elmInt, const FiniteElement& fe,
181-
const Vec3& X) const;
180+
bool evalInt(LocalIntegral& elmInt, const FiniteElement& fe,
181+
const Vec3& X) const override;
182182

183183
using IntegrandBase::evalBou;
184184
//! \brief Evaluates the integrand at a boundary point.
185185
//! \param elmInt The local integral object to receive the contributions
186186
//! \param[in] fe Finite element data of current integration point
187187
//! \param[in] X Cartesian coordinates of current integration point
188188
//! \param[in] normal Boundary normal vector at current integration point
189-
virtual bool evalBou(LocalIntegral& elmInt, const FiniteElement& fe,
190-
const Vec3& X, const Vec3& normal) const;
189+
bool evalBou(LocalIntegral& elmInt, const FiniteElement& fe,
190+
const Vec3& X, const Vec3& normal) const override;
191191

192192
using IntegrandBase::evalSol;
193193
//! \brief Evaluates the secondary solution at a result point.
194194
//! \param[out] s Array of solution field values at current point
195195
//! \param[in] fe Finite element data at current point
196196
//! \param[in] X Cartesian coordinates of current point
197197
//! \param[in] MNPC Nodal point correspondance for the basis function values
198-
virtual bool evalSol(Vector& s, const FiniteElement& fe,
199-
const Vec3& X, const std::vector<int>& MNPC) const;
198+
bool evalSol(Vector& s, const FiniteElement& fe,
199+
const Vec3& X, const std::vector<int>& MNPC) const override;
200200

201201
//! \brief Returns the number of primary/secondary solution field components.
202202
//! \param[in] fld which field set to consider (1=primary, 2=secondary)
203-
virtual size_t getNoFields(int fld = 1) const { return fld > 1 ? nsd : 1; }
203+
size_t getNoFields(int fld = 1) const override { return fld > 1 ? nsd : 1; }
204204
//! \brief Returns the name of the primary solution field.
205205
//! \param[in] prefix Name prefix
206-
virtual std::string getField1Name(size_t, const char* prefix = 0) const;
206+
std::string getField1Name(size_t, const char* prefix = 0) const override;
207207
//! \brief Returns the name of a secondary solution field component.
208208
//! \param[in] i Field component index
209209
//! \param[in] prefix Name prefix for all components
210-
virtual std::string getField2Name(size_t i, const char* prefix = 0) const;
210+
std::string getField2Name(size_t i, const char* prefix = 0) const override;
211211

212212
//! \brief Returns a pointer to an Integrand for solution norm evaluation.
213213
//! \note The Integrand object is allocated dynamically and has to be deleted
214214
//! manually when leaving the scope of the pointer variable receiving the
215215
//! returned pointer value.
216216
//! \param[in] asol Pointer to analytical solution (optional)
217-
virtual NormBase* getNormIntegrand(AnaSol* asol = 0) const;
217+
NormBase* getNormIntegrand(AnaSol* asol = 0) const override;
218218

219219
//! \brief Advances the integrand one time step forward.
220220
virtual void advanceStep() {}

0 commit comments

Comments
 (0)