Skip to content

Commit

Permalink
Update file
Browse files Browse the repository at this point in the history
  • Loading branch information
chahak13 committed Jul 22, 2023
1 parent cfa9d57 commit 31b1e74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/2d/plate_with_hole/plate-with-hole.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ traction = 1
[[math_functions]]
type = "Linear"
xvalues = [0.0, 0.5, 1.0]
fxvalues = [0.0, 1.0, 1.0]
fxvalues = [0.0, 1.0, 1.0]
5 changes: 4 additions & 1 deletion benchmarks/2d/plate_with_hole/test_benchmark.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from pathlib import Path
import jax.numpy as jnp
from diffmpm import MPM
from diffmpm.mpm import MPM


def test_benchmarks():
Expand All @@ -17,3 +17,6 @@ def test_benchmarks():

assert jnp.round(result["stress"][0, :, 1].max() - true_stress_yy, 8) == 0.0
assert jnp.round(result["stress"][0, :, 0].max() - true_stress_xx, 8) == 0.0


test_benchmarks()

0 comments on commit 31b1e74

Please sign in to comment.