Commit 2eef22ee authored by Arnaud Fontaine's avatar Arnaud Fontaine

AdoptSolver: Set the adopted value following the builder.

With Legacy Simulation, when Adopting Prevision, the Builder was called
again and the value was set either at Delivery, Line or Cell level
according to the Movement Group definition. Implement the same kind of
behavior for New Simulation.
parent 816e59c0
......@@ -83,7 +83,14 @@ class AdoptSolver(ConfigurablePropertySolverMixin):
# Also, the behaviour below is naive, and could cause another
# non-divergent Simulation Movement to become divergent.
for simulation_movement in simulation_movement_list:
movement.setProperty(
obj = movement
while movement.getRootDeliveryValue() is not obj:
if obj.hasProperty(solved_property):
break
obj = obj.getParentValue()
obj.setProperty(
solved_property,
simulation_movement.getProperty(solved_property)
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment