pygeo/parameterization/DVGeo.py
def _getDVOffsets(self):
        """
        return the global and local DV offsets for this FFD
        """

        # figure out the split between local and global Variables
        # All global vars at all levels come first
        # then spanwise, then section local vars and then local vars.
        # Parent Vars come before child Vars

        # get the global and local DV numbers on the parents if we don't have them
        if (
            self.nDV_T is None
            or self.nDVG_T is None
            or self.nDVL_T is None
            or self.nDVSL_T is None
            or self.nDVSW_T is None
        ):
            self.nDV_T = self._getNDV()
            self.nDVG_T = self._getNDVGlobal()
            self.nDVL_T = self._getNDVLocal()
            self.nDVSL_T = self._getNDVSectionLocal()
            self.nDVSW_T = self._getNDVSpanwiseLocal()
            self.nDVG_count = 0
            self.nDVSL_count = self.nDVG_T
            self.nDVL_count = self.nDVG_T + self.nDVSL_T

        nDVG = self._getNDVGlobalSelf()
        nDVL = self._getNDVLocalSelf()
        nDVSL = self._getNDVSectionLocalSelf()
        nDVSW = self._getNDVSpanwiseLocalSelf()

        # Set the total number of global and local DVs into any children of this parent
        for child in self.children:
            # now get the numbers for the current parent child

            child.nDV_T = self.nDV_T
            child.nDVG_T = self.nDVG_T
            child.nDVL_T = self.nDVL_T
            child.nDVSL_T = self.nDVSL_T
            child.nDVSW_T = self.nDVSW_T
            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

            # Increment the counters for the children
            nDVG += child._getNDVGlobalSelf()
            nDVL += child._getNDVLocalSelf()
            nDVSL += child._getNDVSectionLocalSelf()
            nDVSW += child._getNDVSpanwiseLocalSelf()

        return self.nDVG_count, self.nDVL_count, self.nDVSL_count, self.nDVSW_count

        return the global and local DV offsets for this FFD
        
return the global and local DV offsets for this FFD
return the global and local DV offsets for this FFD
def _getDVOffsets(self):
        if (
            self.nDV_T is None
            or self.nDVG_T is None
            or self.nDVL_T is None
            or self.nDVSL_T is None
            or self.nDVSW_T is None
        ):
            self.nDV_T = self._getNDV()
            self.nDVG_T = self._getNDVGlobal()
            self.nDVL_T = self._getNDVLocal()
            self.nDVSL_T = self._getNDVSectionLocal()
            self.nDVSW_T = self._getNDVSpanwiseLocal()
            self.nDVG_count = 0
            self.nDVSL_count = self.nDVG_T
            self.nDVL_count = self.nDVG_T + self.nDVSL_T
        nDVG = self._getNDVGlobalSelf()
        nDVL = self._getNDVLocalSelf()
        nDVSL = self._getNDVSectionLocalSelf()
        nDVSW = self._getNDVSpanwiseLocalSelf()
        for child in self.children:
            child.nDV_T = self.nDV_T
            child.nDVG_T = self.nDVG_T
            child.nDVL_T = self.nDVL_T
            child.nDVSL_T = self.nDVSL_T
            child.nDVSW_T = self.nDVSW_T
            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
            nDVG += child._getNDVGlobalSelf()
            nDVL += child._getNDVLocalSelf()
            nDVSL += child._getNDVSectionLocalSelf()
            nDVSW += child._getNDVSpanwiseLocalSelf()
        return self.nDVG_count, self.nDVL_count, self.nDVSL_count, self.nDVSW_count
def _getDVOffsets ( self ) : if ( self . nDV_T is None or self . nDVG_T is None or self . nDVL_T is None or self . nDVSL_T is None or self . nDVSW_T is None ) : self . nDV_T = self . _getNDV ( ) self . nDVG_T = self . _getNDVGlobal ( ) self . nDVL_T = self . _getNDVLocal ( ) self . nDVSL_T = self . _getNDVSectionLocal ( ) self . nDVSW_T = self . _getNDVSpanwiseLocal ( ) self . nDVG_count = 0 self . nDVSL_count = self . nDVG_T self . nDVL_count = self . nDVG_T + self . nDVSL_T nDVG = self . _getNDVGlobalSelf ( ) nDVL = self . _getNDVLocalSelf ( ) nDVSL = self . _getNDVSectionLocalSelf ( ) nDVSW = self . _getNDVSpanwiseLocalSelf ( ) for child in self . children : child . nDV_T = self . nDV_T child . nDVG_T = self . nDVG_T child . nDVL_T = self . nDVL_T child . nDVSL_T = self . nDVSL_T child . nDVSW_T = self . nDVSW_T 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 nDVG += child . _getNDVGlobalSelf ( ) nDVL += child . _getNDVLocalSelf ( ) nDVSL += child . _getNDVSectionLocalSelf ( ) nDVSW += child . _getNDVSpanwiseLocalSelf ( ) return self . nDVG_count , self . nDVL_count , self . nDVSL_count , self . nDVSW_count
return the global and local DV offsets for this FFD
return the global and local DV offsets for this FFD
"""
        return the global and local DV offsets for this FFD
        """ # figure out the split between local and global Variables # All global vars at all levels come first # then spanwise, then section local vars and then local vars. # Parent Vars come before child Vars # get the global and local DV numbers on the parents if we don't have them # Set the total number of global and local DVs into any children of this parent # now get the numbers for the current parent child # Increment the counters for the children
self