Skip to content

Commit 11ae7cd

Browse files
committed
fenics output metrics corrected & inclusion of tool metadata
1 parent f7177bc commit 11ae7cd

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

examples/linear-elastic-plate-with-hole/fenics/run_benchmark.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
shared_env_dir = root_unzipped_benchmark_dir / "conda_envs"
3535
shared_env_dir.mkdir(parents=True, exist_ok=True)
3636

37+
####################################################################################################
38+
####################################################################################################
39+
# Simulation tool metadata (to be included in the RO-Crate)
40+
####################################################################################################
41+
####################################################################################################
42+
43+
tool_name = "fenics"
44+
tool_uri = "https://github.com/FEniCS/dolfinx"
45+
tool_version = "0.9.0"
46+
3747
####################################################################################################
3848
####################################################################################################
3949
# Conditional execution of parameter configurations

examples/linear-elastic-plate-with-hole/fenics/run_simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def analytical_displacement_expr(x: np.ndarray) -> np.ndarray:
197197
# u.eval returns a 2D array: shape (num_points, value_size)
198198
local_displacement = u.eval(
199199
displacement_eval_point, np.array([cell], dtype=np.int32)
200-
)[0].tolist() # [ux, uy]
200+
).tolist() # [ux, uy]
201201

202202

203203
def project(

examples/linear-elastic-plate-with-hole/kratos/run_benchmark.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
shared_env_dir = root_unzipped_benchmark_dir / "conda_envs"
3535
shared_env_dir.mkdir(parents=True, exist_ok=True)
3636

37+
####################################################################################################
38+
####################################################################################################
39+
# Simulation tool metadata (to be included in the RO-Crate)
40+
####################################################################################################
41+
####################################################################################################
42+
43+
tool_name = "kratos"
44+
tool_uri = "https://github.com/KratosMultiphysics/Kratos"
45+
tool_version = "10.3.1"
46+
3747
####################################################################################################
3848
####################################################################################################
3949
# Conditional execution of parameter configurations

0 commit comments

Comments
 (0)