*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit b8d555ac authored by Hanser, Valentin's avatar Hanser, Valentin
Browse files

added getShift

parent 1931743f
No related branches found
No related tags found
No related merge requests found
Pipeline #286155 passed
......@@ -20,6 +20,7 @@ void ExportReclibPhiFunctions(py::module &main_m){
.def("__hash__", &PhiFunction::getHash)
.def("getHash", &PhiFunction::getHash)
.def("setShift", &PhiFunction::setShift)
.def_property("shift", &PhiFunction::getShift, &PhiFunction::setShift)
.def("getPlotData",
[](PhiFunction *instance, unsigned int iNum)
{
......
......@@ -32,6 +32,10 @@ void PhiFunction::setShift(const double shift_in){
shift = shift_in;
}
double PhiFunction::getShift() const{
return shift;
}
double PhiFunction::DirectEvaluate(double x) const {
unsigned int iN = 0; // which sheet
......@@ -223,6 +227,7 @@ std::string PhiFunction::toString() const{
ss << "douter " << douter << std::endl;
ss << "coordinate " << coordinate << std::endl;
ss << "modelHalfAir " << modelHalfAir << std::endl;
ss << "shift " << shift << std::endl;
return ss.str();
}
......
......@@ -66,6 +66,7 @@ public:
bool getComplex(){return false;};
unsigned int getCoordinate() const;
void setShift(const double d);
double getShift() const;
bool operator == (const PhiFunction& o ) const;
std::size_t getHash() const {return std::hash<std::string>{}(toString());} ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment