Commit 952aed6b authored by Georg Martin Reinke's avatar Georg Martin Reinke
Browse files

adjust getCurrent implementations


Former-commit-id: 5be5b051
parent b9292eab
......@@ -59,7 +59,11 @@ namespace DPsim {
virtual void postStep(SystemModel& system) { }
/// Return the current flowing through this component in the previous timestep
virtual Complex getCurrent(SystemModel& system) { }
virtual Complex getCurrent(SystemModel& system) {
std::cerr << "getCurrent implementation missing" << std::endl;
std::exit(1);
return Complex(0, 0);
}
};
}
......
......@@ -19,7 +19,3 @@ void CurrentSource::applyRightSideVectorStamp(SystemModel& system) {
void CurrentSource::step(SystemModel& system, Real time) {
this->applyRightSideVectorStamp(system);
}
Complex CurrentSource::getCurrent(SystemModel& system) {
return Complex(currentr, currenti);
}
......@@ -19,7 +19,6 @@ namespace DPsim {
void applyRightSideVectorStamp(SystemModel& system);
void step(SystemModel& system, Real time);
void postStep(SystemModel& system) { }
virtual Complex getCurrent(SystemModel& system);
};
}
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment