Skip to content

Commit

Permalink
Remove evalf definition from shiftFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabrielgerez committed Oct 3, 2023
1 parent d1c3ba2 commit 36bdbdc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/environment/ShiftFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ ShiftFunction::ShiftFunction(const mrchem::Cavity cavity, double val_in, double
, out(val_out)
, cavity(cavity) {}

double ShiftFunction::evalf(const mrcpp::Coord<3> &r) const {
auto C = cavity.evalf(r);
return this->in * C + this->out * (1 - C);
}

void ShiftFunction::printParameters() const {
// Collect relevant quantities
auto coords = this->cavity.getCoordinates();
Expand Down
6 changes: 0 additions & 6 deletions src/environment/ShiftFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ class ShiftFunction : public mrcpp::RepresentableFunction<3> {
*/
ShiftFunction(const Cavity cavity, double val_in, double val_out);

/** @brief Evaluates ShiftFunction at a point in 3D space.
* @param r coordinates of a 3D point in space.
* @return double type value at the point.
*/
double evalf(const mrcpp::Coord<3> &r) const override;

auto getCoordinates() const { return this->cavity.getCoordinates(); }
auto getRadii() const { return this->cavity.getRadii(); }
auto getGradVector() const { return this->cavity.getGradVector(); }
Expand Down

0 comments on commit 36bdbdc

Please sign in to comment.