Skip to content

Commit 7c9e2cf

Browse files
committed
run_benchmark.py correction
1 parent 13f2bc7 commit 7c9e2cf

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343
for file in root_unzipped_benchmark_dir.glob("parameters_*.json"):
4444
with open(file, "r") as f:
4545
data = json.load(f)
46-
#if data.get("element_size[m]") >= 0.025:
47-
#if data.get("configuration") == "1":
48-
if 1==1:
46+
if data.get("element_size[m]") >= 0.025:
47+
4948
# Create output directory for the configuration
5049
output_dir = root_unzipped_benchmark_dir / "results" / data.get("configuration")
5150
output_dir.mkdir(parents=True, exist_ok=True)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
for file in root_unzipped_benchmark_dir.glob("parameters_*.json"):
4444
with open(file, "r") as f:
4545
data = json.load(f)
46-
#if data.get("element_size[m]") >= 0.025:
47-
if 1==1:
46+
if data.get("element_size[m]") >= 0.025:
47+
4848
# Create output directory for the configuration
4949
output_dir = root_unzipped_benchmark_dir / "results" / data.get("configuration")
5050
output_dir.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)