Skip to content

Commit 99acd43

Browse files
committed
formating
1 parent c48c38e commit 99acd43

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

benchmarks/linear-elastic-plate-with-hole/FEniCS/create_mesh.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def create_mesh(parameter_file, mesh_file):
4747
.to_base_units()
4848
.magnitude
4949
)
50+
5051
gmsh.option.setNumber("Mesh.CharacteristicLengthMin", element_size)
5152
gmsh.option.setNumber("Mesh.CharacteristicLengthMax", element_size)
5253
gmsh.option.setNumber("Mesh.CharacteristicLengthFactor", 1.0)
@@ -91,15 +92,8 @@ def create_mesh(parameter_file, mesh_file):
9192

9293

9394
if __name__ == "__main__":
94-
PARSER = ArgumentParser(
95-
description="Create input files and mesh for FEniCS simulation"
96-
)
97-
PARSER.add_argument(
98-
"--input_parameter_file", required=True, help="JSON file containing simulation parameters"
99-
)
100-
PARSER.add_argument(
101-
"--output_mesh_file", required=True, help="Output path for the generated mesh (.msh)"
102-
)
95+
PARSER = ArgumentParser(description="Create input files and mesh for FEniCS simulation")
96+
PARSER.add_argument("--input_parameter_file", required=True, help="JSON file containing simulation parameters")
97+
PARSER.add_argument("--output_mesh_file", required=True, help="Output path for the generated mesh (.msh)")
10398
ARGS = vars(PARSER.parse_args())
104-
10599
create_mesh(ARGS["input_parameter_file"], ARGS["output_mesh_file"])

benchmarks/linear-elastic-plate-with-hole/FEniCS/run_simulation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ def mises_stress(u):
211211
# Save metrics
212212
metrics = {
213213
"max_von_mises_stress_nodes": max_mises_stress_nodes,
214-
"max_von_mises_stress_gauss_points": max_mises_stress_gauss_points
215-
}
214+
"max_von_mises_stress_gauss_points": max_mises_stress_gauss_points}
216215

217216
if MPI.COMM_WORLD.rank == 0:
218217
with open(metrics_file, "w") as f:

0 commit comments

Comments
 (0)