Commit 8687e4cd authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

pass matrices via reference to silence compiler errors

How did this every worked?


Former-commit-id: 2b52e62c
parent 8a04054a
...@@ -58,8 +58,8 @@ namespace DPsim { ...@@ -58,8 +58,8 @@ namespace DPsim {
double getTime() { return mTime; } double getTime() { return mTime; }
double getFinalTime() { return mFinalTime; } double getFinalTime() { return mFinalTime; }
Matrix getLeftSideVector() { return mSystemModel.getLeftSideVector(); } Matrix & getLeftSideVector() { return mSystemModel.getLeftSideVector(); }
Matrix getRightSideVector() { return mSystemModel.getRightSideVector(); } Matrix & getRightSideVector() { return mSystemModel.getRightSideVector(); }
Matrix getSystemMatrix() { return mSystemModel.getCurrentSystemMatrix(); } Matrix getSystemMatrix() { return mSystemModel.getCurrentSystemMatrix(); }
int stepGeneratorTest(Logger& logger, Logger& leftSideVectorLog, Logger& rightSideVectorLog, int stepGeneratorTest(Logger& logger, Logger& leftSideVectorLog, Logger& rightSideVectorLog,
BaseComponent* generator, Logger& synGenLogFlux, Logger& synGenLogVolt, Logger& synGenLogCurr, Real fieldVoltage, Real mechPower, BaseComponent* generator, Logger& synGenLogFlux, Logger& synGenLogVolt, Logger& synGenLogCurr, Real fieldVoltage, Real mechPower,
......
...@@ -45,10 +45,10 @@ namespace DPsim { ...@@ -45,10 +45,10 @@ namespace DPsim {
void initialize(Int numNodes, Int numIdealVS); void initialize(Int numNodes, Int numIdealVS);
void addSystemMatrix(Matrix systemMatrix); void addSystemMatrix(Matrix systemMatrix);
Matrix getCurrentSystemMatrix() { return mSystemMatrix; } Matrix & getCurrentSystemMatrix() { return mSystemMatrix; }
Matrix getLUdecomp() { return mLuFactored.matrixLU(); } const Matrix & getLUdecomp() { return mLuFactored.matrixLU(); }
Matrix getRightSideVector() { return mRightSideVector; } Matrix & getRightSideVector() { return mRightSideVector; }
Matrix getLeftSideVector() { return mLeftSideVector; } Matrix & getLeftSideVector() { return mLeftSideVector; }
Real getTimeStep() { return mTimeStep; } Real getTimeStep() { return mTimeStep; }
Real getOmega() { return mSystemOmega; } Real getOmega() { return mSystemOmega; }
Int getCompOffset() { return mCompOffset; } Int getCompOffset() { return mCompOffset; }
......
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