Skip to content

Commit

Permalink
Merge pull request #189 from seismic-anisotropy/fix-fl-corner2d-example
Browse files Browse the repository at this point in the history
fix: Fix fl-corner2d example
  • Loading branch information
Patol75 authored Apr 22, 2024
2 parents 08a116e + 256c08b commit b8b9ce0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/fluidity/corner2d/corner2d.flml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@
return INITIAL_POSITIONS</string_value>
</python>
</initial_position>
<initialise_during_simulation>
<python>
<string_value type="code" language="python" lines="20">def val(t):
from corner2d import INITIAL_POSITIONS

if 8.7e13 &lt; t &lt; 8.75e13 or 4.3e14 &lt; t &lt; 4.4e14:
return INITIAL_POSITIONS
else:
return []</string_value>
</python>
</initialise_during_simulation>
<attributes>
<scalar_attribute_array name="CPO_">
<dimension>
Expand Down

0 comments on commit b8b9ce0

Please sign in to comment.