Skip to content

Commit eb1ce4d

Browse files
committed
[ModelicaSystemDoE] build model after all structural parameters are defined
1 parent 1ccce11 commit eb1ce4d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,7 @@ def prepare(self) -> int:
15211521
variableFilter=self._variableFilter,
15221522
customBuildDirectory=self._customBuildDirectory,
15231523
omhome=self._omhome,
1524+
build=False,
15241525
)
15251526

15261527
sim_args_structure = {}
@@ -1537,6 +1538,8 @@ def prepare(self) -> int:
15371538
expression = f"setParameterValue({self._modelName}, {pk_structure}, {pk_value})"
15381539
mod_structure.sendExpression(expression)
15391540

1541+
mod_structure.buildModel(variableFilter=self._variableFilter)
1542+
15401543
for idx_pc_simple, pc_simple in enumerate(param_simple_combinations):
15411544
sim_args_simple = {}
15421545
for idx_simple, pk_simple in enumerate(param_simple.keys()):

0 commit comments

Comments
 (0)