Skip to content

Some function refactoring - #55

Merged
kmokstad merged 10 commits into
openfedem:mainfrom
kmokstad:function-update
Aug 2, 2026
Merged

Some function refactoring#55
kmokstad merged 10 commits into
openfedem:mainfrom
kmokstad:function-update

Conversation

@kmokstad

@kmokstad kmokstad commented Jun 27, 2026

Copy link
Copy Markdown

Some cleanup/refactor of the engine/function/sensor processing, in preparation for upcoming coupled control system and structure modal analysis implementation.

Improve error messages related to sensor updates.
Fix check in EngineRate (ramp != 1 instead of ramp == 1).
Let function SensorRate return 1.0 also for control out sensors.
Change to intent(in) on some evaluation subroutines/functions.
@kmokstad
kmokstad force-pushed the function-update branch 3 times, most recently from 6e60159 to 320f29a Compare June 30, 2026 03:47
kmoks and others added 8 commits August 2, 2026 12:00
to function argument sensors are set up before accessing them
simplicity. Using argSensor only which is gradually enlarged
in the case multi-argument functions are present.
Remove WriteSysMat2 - use WriteSysMat with complexity > 10 instead.
Add option to write out the sparse matrix as full, regardless of its size.
with a pointer to an engine object which is used if the sensor is
measuring another Function. With this it is easier to traverse the
function-argument chain recursively and we don't need the global copy
of the engines array in engineRoutinesModule. The updateSensor()
subroutine can now also be made private to engineRoutinesModule.
Remove never used (or not for a very long time) SensorType member
in the CtrlPrm type to simplify some logic.
…library

to avoid dependency issues on Linux when building as static libraries
@kmokstad
kmokstad merged commit b9f71a5 into openfedem:main Aug 2, 2026
1 check passed
@kmokstad
kmokstad deleted the function-update branch August 4, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants