Commit a844dfc
authored
fix: TurbineGovernorType1 initialization attributes (sogno-platform#493)
## Summary
- The `explicit TurbineGovernorType1(const String &name)` constructor
called `SimSignalComp(name, name)` directly, bypassing the
member-initializer list for `mXg1`, `mXg2`, `mXg3`, and `mTm`
- The Python binding `py::init<std::string>()` resolves to this
constructor, so any Python-side `TurbineGovernorType1('name')` call
produced an object that segfaulted in `initializeStates()` on `**mXg1 =
TmRef`
- Fix: initialize with a default value turning logger off1 file changed
Lines changed: 2 additions & 6 deletions
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 58 | + | |
| 59 | + | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
| |||
0 commit comments