Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit f3600b4

Browse files
author
Martin Lacroix
committed
Update Pfem.py
1 parent fb9af94 commit f3600b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cupydo/interfaces/Pfem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def run(self, t1, t2):
104104
self.pfem.scheme.setNextStep()
105105
runOK = self.pfem.scheme.runOneTimeStep()
106106
if runOK: self.__setCurrentState()
107+
else: self.pfem.scheme.resetNodalPositions()
107108
return runOK
108109

109110
def getNodalInitialPositions(self):

0 commit comments

Comments
 (0)