Skip to content

Commit

Permalink
Fix spanwise Local DV offset (#243)
Browse files Browse the repository at this point in the history
* fix DV offset

* undo unwanted changes

---------

Co-authored-by: Joshua Anibal <joshua.l.anibal@nasa.gov>
  • Loading branch information
joanibal and Joshua Anibal committed Apr 29, 2024
1 parent ad9338a commit 44a25b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygeo/parameterization/DVGeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3716,6 +3716,7 @@ def _getDVOffsets(self):
self.nDVG_count = 0
self.nDVSL_count = self.nDVG_T
self.nDVL_count = self.nDVG_T + self.nDVSL_T
self.nDVSW_count = self.nDVG_T + self.nDVSL_T + self.nDVL_T

nDVG = self._getNDVGlobalSelf()
nDVL = self._getNDVLocalSelf()
Expand All @@ -3734,7 +3735,7 @@ def _getDVOffsets(self):
child.nDVG_count = self.nDVG_count + nDVG
child.nDVL_count = self.nDVL_count + nDVL
child.nDVSL_count = self.nDVSL_count + nDVSL
child.nDVSW_count = self.nDVSW_count + nDVSL
child.nDVSW_count = self.nDVSW_count + nDVSW

# Increment the counters for the children
nDVG += child._getNDVGlobalSelf()
Expand Down

0 comments on commit 44a25b3

Please sign in to comment.