Skip to content

Commit c241c1a

Browse files
author
Rudy Alkarem
committed
allowing users to define a specific creep_rate in the state dictionary
1 parent feed874 commit c241c1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

famodel/mooring/mooring.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,8 @@ def updateState(self, stateDict, ms=None):
903903

904904
# 2. Apply creep if specified
905905
if stateDict.get('creep', False):
906-
self.setCreep(years)
906+
creep_rate = stateDict.get('creep_rate', None)
907+
self.setCreep(years, creep_rate=creep_rate)
907908

908909
# 3. Apply corrosion if specified
909910
if stateDict.get('corrosion', False):

0 commit comments

Comments
 (0)