Skip to content

Commit fc75967

Browse files
authored
fix wrong parameter order in addDForce and addKToMatrix (#579)
* fix wrong parameter order in addDForce * also fix addKToMatrix
1 parent ca2be7c commit fc75967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/example-forcefield.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def addForce(self, m, out_force, pos, vel):
2222
with out_force.writeableArray() as wa:
2323
wa[:] += ( (self.initpos-pos.value) * self.ks.value )
2424

25-
def addDForce(self, df, dx, params):
25+
def addDForce(self, params, df, dx):
2626
pass
2727

28-
#def addKToMatrix(self, a, b):
28+
#def addKToMatrix(self, params, number_of_nodes, number_of_dofs_per_node):
2929
# print(" Python::addKToMatrix: ", a, " ", b)
3030

3131

0 commit comments

Comments
 (0)