Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nom_addLocalSectionDV in MPhys wrapper #261

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions pygeo/mphys/mphys_dvgeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,6 @@ def nom_addPointSet(self, points, ptName, add_output=True, DVGeoName=None, **kwa
DVGeo.addPointSet(points.reshape(len(points) // 3, 3), ptName, **kwargs)
self.omPtSetList.append(ptName)

if isinstance(DVGeo, DVGeometry):
for child in DVGeo.children.values():
# Embed points from parent if not already done
for pointSet in DVGeo.points:
if pointSet not in child.points:
child.addPointSet(DVGeo.points[pointSet], pointSet)

if add_output:
# add an output to the om component
self.add_output(ptName, distributed=True, val=points.flatten())
Expand Down Expand Up @@ -468,7 +461,15 @@ def nom_addLocalSectionDV(

# add the DV to DVGeo
nVal = DVGeo.addLocalSectionDV(
dvName, secIndex, axis, pointSelect, volList, orient0, orient2, config, prependName=False
dvName=dvName,
secIndex=secIndex,
axis=axis,
pointSelect=pointSelect,
volList=volList,
orient0=orient0,
orient2=orient2,
config=config,
prependName=False,
)

# define the input
Expand Down
Loading