Skip to content
Not built

Changes

Summary

  1. [NB] resizable components backbone (#12936) (details)
Commit 9c930d2cf6e3013efbc4ee5d872defa06c8b4ea8 by 38032125+kabdelhak
[NB] resizable components backbone (#12936)

* [NB] resizable components backbone

- create backend data type for resizable components
- fully independent for-loops (they can be solved in any order) are detected
   ToDo: detect forward or reverse forced for-loops as well
   ToDo: allow certain slicing if its recoverable as for-loop
- create algorithm code for now
   ToDo: make it actually resizable

* [testsuite] add test case from open scaling

* [NB] save solved resizable equation

* [NB] fix if-equation toStatement

- IF: replace END condition with BOOLEAN(true) (thats what the frontend wants)
- Types: don't use array element types rather use the original ones

* [testsuite] update for resizable components
The file was modifiedOMCompiler/Compiler/NBackEnd/Util/NBDifferentiate.mo (diff)
The file was modifiedOMCompiler/Compiler/NBackEnd/Modules/3_Post/NBSolve.mo (diff)
The file was modifiedtestsuite/simulation/modelica/NBackend/array_handling/irregular_for.mos (diff)
The file was addedtestsuite/simulation/modelica/NBackend/array_handling/Resizable_HeatTransfer_equations.mos
The file was modifiedOMCompiler/Compiler/NBackEnd/Classes/NBEquation.mo (diff)
The file was modifiedOMCompiler/Compiler/NSimCode/NSimStrongComponent.mo (diff)
The file was modifiedtestsuite/simulation/modelica/NBackend/array_handling/Makefile (diff)
The file was modifiedOMCompiler/Compiler/NBackEnd/Classes/NBackendDAE.mo (diff)
The file was modifiedtestsuite/simulation/modelica/NBackend/array_handling/simple_for.mos (diff)
The file was modifiedOMCompiler/Compiler/NBackEnd/Classes/NBStrongComponent.mo (diff)
The file was modifiedtestsuite/simulation/modelica/NBackend/array_handling/simple_nested_for.mos (diff)
The file was addedtestsuite/simulation/modelica/NBackend/array_handling/HeatTransfer1D_testCase.mo