Skip to content

Commit ac9c44c

Browse files
committed
[ModelicaSystemDoE] build model after all structural parameters are defined
1 parent 76b5599 commit ac9c44c

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
@@ -1607,6 +1607,7 @@ def prepare(self) -> int:
16071607
variableFilter=self._variableFilter,
16081608
customBuildDirectory=self._customBuildDirectory,
16091609
omhome=self._omhome,
1610+
build=False,
16101611
)
16111612

16121613
sim_args_structure = {}
@@ -1623,6 +1624,8 @@ def prepare(self) -> int:
16231624
expression = f"setParameterValue({self._modelName}, {pk_structure}, {pk_value})"
16241625
mod_structure.sendExpression(expression)
16251626

1627+
mod_structure.buildModel(variableFilter=self._variableFilter)
1628+
16261629
for idx_pc_simple, pc_simple in enumerate(param_simple_combinations):
16271630
sim_args_simple = {}
16281631
for idx_simple, pk_simple in enumerate(param_simple.keys()):

0 commit comments

Comments
 (0)