Skip to content

Commit

Permalink
Dev into 2.16.x (#708)
Browse files Browse the repository at this point in the history
* Fix cohesion bug by adding epsilon1 and epsilon2 (#707)

* Update conda-build-test.yml

mac-os from build runner. Its not available and that's causing errors.

---------

Co-authored-by: tiannh7 <[email protected]>
  • Loading branch information
julesghub and tiannh7 authored Feb 28, 2025
1 parent d997c73 commit f41a1be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conda-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: [ubuntu-latest, macos-13] #, macos-latest]
runs-on: [ubuntu-latest] #, macos-latest]

steps:
- name: Checkout repository
Expand Down
4 changes: 3 additions & 1 deletion src/underworld/UWGeodynamics/_rheology.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ def _cohesionFn(self):
cohesion = self.cohesionWeakeningFn(
self.plasticStrain,
Cohesion=nd(self.cohesion),
CohesionSw=nd(self.cohesionAfterSoftening))
CohesionSw=nd(self.cohesionAfterSoftening),
epsilon1=self.epsilon1,
epsilon2=self.epsilon2)
else:
cohesion = fn.misc.constant(self.cohesion)
return cohesion
Expand Down

0 comments on commit f41a1be

Please sign in to comment.