Skip to content

Commit 171bfdc

Browse files
committed
[ModelicaSystemDoE] build model after all structural parameters are defined
1 parent 5205813 commit 171bfdc

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
@@ -1878,6 +1878,7 @@ def prepare(self) -> int:
18781878
variableFilter=self._variableFilter,
18791879
customBuildDirectory=self._customBuildDirectory,
18801880
omhome=self._omhome,
1881+
build=False,
18811882
)
18821883

18831884
sim_args_structure = {}
@@ -1894,6 +1895,8 @@ def prepare(self) -> int:
18941895
expression = f"setParameterValue({self._modelName}, {pk_structure}, {pk_value})"
18951896
mod_structure.sendExpression(expression)
18961897

1898+
mod_structure.buildModel(variableFilter=self._variableFilter)
1899+
18971900
for idx_pc_simple, pc_simple in enumerate(param_simple_combinations):
18981901
sim_args_simple = {}
18991902
for idx_simple, pk_simple in enumerate(param_simple.keys()):

0 commit comments

Comments
 (0)