From 31b1e74aeba94caafeec4e43b783dfffca0461d4 Mon Sep 17 00:00:00 2001 From: Chahak Mehta Date: Fri, 21 Jul 2023 19:57:12 -0700 Subject: [PATCH] Update file --- benchmarks/2d/plate_with_hole/plate-with-hole.toml | 2 +- benchmarks/2d/plate_with_hole/test_benchmark.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/benchmarks/2d/plate_with_hole/plate-with-hole.toml b/benchmarks/2d/plate_with_hole/plate-with-hole.toml index 0ef8919..124bc66 100644 --- a/benchmarks/2d/plate_with_hole/plate-with-hole.toml +++ b/benchmarks/2d/plate_with_hole/plate-with-hole.toml @@ -71,4 +71,4 @@ traction = 1 [[math_functions]] type = "Linear" xvalues = [0.0, 0.5, 1.0] -fxvalues = [0.0, 1.0, 1.0] \ No newline at end of file +fxvalues = [0.0, 1.0, 1.0] diff --git a/benchmarks/2d/plate_with_hole/test_benchmark.py b/benchmarks/2d/plate_with_hole/test_benchmark.py index 16263f9..e5d6809 100644 --- a/benchmarks/2d/plate_with_hole/test_benchmark.py +++ b/benchmarks/2d/plate_with_hole/test_benchmark.py @@ -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(): @@ -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()