Skip to content

Commit

Permalink
fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
landinjm committed Nov 4, 2024
1 parent 53bdcd0 commit bec678f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion include/IntegrationTools/pfield/Mesh.hh
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,10 @@ namespace PRISMS
{
_coord[0] = COORD_X[i];
_coord[1] = COORD_Y[i];
_coord[2] = COORD_Z[i];
if (DIM > 2)
{
_coord[2] = COORD_Z[i];
}

for (int m = 0; m < DIM; m++)
add_once(value[m], hist[m], _coord[m]);
Expand Down
20 changes: 10 additions & 10 deletions include/IntegrationTools/pfield/PField.hh
Original file line number Diff line number Diff line change
Expand Up @@ -67,36 +67,36 @@ namespace PRISMS
// Clone

PField<Coordinate, FieldType, DIM> *
clone() const
clone() const override
{
return new PField<Coordinate, FieldType, DIM>(*this);
}

// ----------------------------------------------------------
// Use these functions if you want to evaluate a single value
FieldType
operator()(const Coordinate &coord);
operator()(const Coordinate &coord) override;
FieldType
grad(const Coordinate &coord, size_type di);
grad(const Coordinate &coord, size_type di) override;
FieldType
hess(const Coordinate &coord, size_type di, size_type dj);
hess(const Coordinate &coord, size_type di, size_type dj) override;

// ----------------------------------------------------------
// Use these functions to evaluate several values, then use 'get' methods to access
// results
void
eval(const Coordinate &coord);
eval(const Coordinate &coord) override;
void
eval_grad(const Coordinate &coord);
eval_grad(const Coordinate &coord) override;
void
eval_hess(const Coordinate &coord);
eval_hess(const Coordinate &coord) override;

FieldType
operator()() const;
operator()() const override;
FieldType
grad(size_type di) const;
grad(size_type di) const override;
FieldType
hess(size_type di, size_type dj) const;
hess(size_type di, size_type dj) const override;

// PField unique members ------------------------------------------

Expand Down

0 comments on commit bec678f

Please sign in to comment.