Skip to content

Commit ae33808

Browse files
author
Nicola-Fonzi
committed
Error with array dimension
1 parent 2f1e61d commit ae33808

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_PY/SU2_Nastran/pysu2_nastran.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# Config class
4242
# ----------------------------------------------------------------------
4343

44-
class ImposedMotionFunction:
44+
class ImposedMotionClass:
4545

4646
def __init__(self,time0,typeOfMotion,parameters,mode):
4747

@@ -779,7 +779,7 @@ def __temporalIteration(self,time):
779779
for isuperposed in range(len(self.Config["IMPOSED_MODES"][imode])):
780780
typeOfMotion = self.Config["IMPOSED_MODES"][imode][isuperposed]
781781
parameters = self.Config["IMPOSED_PARAMETERS"][imode][isuperposed]
782-
self.ImposedMotionFunction[iImposedFunc] = ImposedMotionFunction(time, typeOfMotion, parameters, imode)
782+
self.ImposedMotionFunction.append(ImposedMotionClass(time, typeOfMotion, parameters, imode))
783783
iImposedFunc += 1
784784
self.ImposedMotionToSet = False
785785
for iImposedFunc in range(len(self.ImposedMotionFunction)):

0 commit comments

Comments
 (0)