Skip to content

Commit

Permalink
Merge pull request #12459 from KratosMultiphysics/optapp/bugfix/shape…
Browse files Browse the repository at this point in the history
…_opt

[OptApp] Fix the segmentation fault of shape opt
  • Loading branch information
sunethwarna authored Jun 14, 2024
2 parents a25b485 + 430a937 commit e55171c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def _UpdateMesh(self, shape_update: ContainerExpressionTypes) -> None:
# now fix the design surface component
Kratos.VariableUtils().ApplyFixity(mesh_displacement_var, True, shape_update.GetModelPart().Nodes)
# now fix boundary condition components
for model_part in self.filter.GetBoundaryConditions()[i_comp]:
model_parts = self.filter.GetBoundaryConditions()
for model_part in model_parts[i_comp]:
Kratos.VariableUtils().ApplyFixity(mesh_displacement_var, True, model_part.Nodes)

# solve for the volume mesh displacements
Expand Down

0 comments on commit e55171c

Please sign in to comment.