Skip to content

Commit

Permalink
Fix partially overridden warning (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf authored Jan 22, 2025
1 parent c041dc1 commit d1b059f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@

namespace sierra::nalu {

class StringTimeCoordTemperatureAuxFunction final : public AuxFunction
class StringTimeCoordTemperatureAuxFunction : public AuxFunction
{
public:
StringTimeCoordTemperatureAuxFunction(std::string fcn);

using AuxFunction::do_evaluate;
void do_evaluate(
const double* coords,
const double time,
Expand All @@ -30,7 +31,7 @@ class StringTimeCoordTemperatureAuxFunction final : public AuxFunction
double* fieldPtr,
const unsigned fieldSize,
const unsigned beginPos,
const unsigned endPos) const final;
const unsigned endPos) const;

private:
const StringTimeCoordFunction f_;
Expand Down
5 changes: 3 additions & 2 deletions include/user_functions/TabulatedTemperatureAuxFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

namespace sierra::nalu {

class TabulatedTemperatureAuxFunction final : public AuxFunction
class TabulatedTemperatureAuxFunction : public AuxFunction
{
public:
TabulatedTemperatureAuxFunction(
std::vector<double> heights, std::vector<double> temperatures);

using AuxFunction::do_evaluate;
void do_evaluate(
const double* coords,
const double time,
Expand All @@ -30,7 +31,7 @@ class TabulatedTemperatureAuxFunction final : public AuxFunction
double* fieldPtr,
const unsigned fieldSize,
const unsigned beginPos,
const unsigned endPos) const final;
const unsigned endPos) const;

private:
std::vector<double> heights_;
Expand Down

0 comments on commit d1b059f

Please sign in to comment.