Commit 62990595 authored by Markus Mirz's avatar Markus Mirz
Browse files

fix mna solver initialization


Former-commit-id: 1c639a87
parent ca097282
......@@ -115,9 +115,9 @@ void MnaSolver<Real>::initializeComponents() {
mSLog->info("-- Initialize components from power flow");
for (auto comp : mPowerComponents) {
auto pComp = std::dynamic_pointer_cast<PowerComponent<Complex>>(comp);
if (!pComp) continue;
pComp->initializeFromPowerflow(mSystem.mSystemFrequency);
if (!pComp) continue;
pComp->initialize(mSystem.mFrequencies);
pComp->initializeFromPowerflow(mSystem.mSystemFrequency);
}
// Initialize signal components.
......@@ -149,8 +149,8 @@ void MnaSolver<Complex>::initializeComponents() {
for (auto comp : mPowerComponents) {
auto pComp = std::dynamic_pointer_cast<PowerComponent<Complex>>(comp);
if (!pComp) continue;
pComp->initializeFromPowerflow(mSystem.mSystemFrequency);
pComp->initialize(mSystem.mFrequencies);
pComp->initializeFromPowerflow(mSystem.mSystemFrequency);
}
// Initialize signal components.
......
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