Skip to content

Commit

Permalink
remove unused code (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 authored Mar 21, 2022
1 parent 18df524 commit b04012d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions adflow/pyADflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,6 @@ def __call__(self, aeroProblem, **kwargs):

startCallTime = time.time()

# Make sure the user isn't trying to solve a slave
# aeroproblem. Cannot do that
if hasattr(aeroProblem, "isSlave"):
if aeroProblem.isSlave:
raise Error("Cannot solve an aeroProblem created as a slave")

# Get option about adjoint memory
releaseAdjointMemory = kwargs.pop("relaseAdjointMemory", True)

Expand Down Expand Up @@ -5800,18 +5794,6 @@ def _convertFortranStringArrayToList(self, fortArray):

return strList

def createSlaveAeroProblem(self, master):
"""Create a slave aeroproblem"""

# Make sure everything is created for the master
self.setAeroProblem(master)

slave = copy.deepcopy(master)
slave.adflowData = master.adflowData
slave.surfMesh = master.surfMesh
slave.isSlave = True
return slave

def _readPlot3DSurfFile(self, fileName, convertToTris=True):
"""Read a plot3d file and return the points and connectivity in
an unstructured mesh format"""
Expand Down

0 comments on commit b04012d

Please sign in to comment.