Skip to content

Commit

Permalink
Apply Black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Dec 4, 2023
1 parent fe5f26d commit f57c890
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions goalie/go_mesh_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ def get_enriched_mesh_seq(
for label, fs in mesh_seq_e.function_spaces.items():
for n, _space in enumerate(fs):
element = _space.ufl_element()
element = element.reconstruct(degree=element.degree() + num_enrichments)
mesh_seq_e._fs[label][n] = FunctionSpace(mesh_seq_e.meshes[n], element)
element = element.reconstruct(
degree=element.degree() + num_enrichments
)
mesh_seq_e._fs[label][n] = FunctionSpace(
mesh_seq_e.meshes[n], element
)

return mesh_seq_e

Expand Down
4 changes: 3 additions & 1 deletion test/test_error_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ def test_time_partition_different_timesteps(self):
estimator = indicators2estimator(
{"field": [[indicator], 2 * [indicator]]}, time_partition
)
self.assertAlmostEqual(estimator, 1) # 0.5 * (0.5 + 0.5) + 0.25 * 2 * (0.5 + 0.5)
self.assertAlmostEqual(
estimator, 1
) # 0.5 * (0.5 + 0.5) + 0.25 * 2 * (0.5 + 0.5)

def test_time_instant_multiple_fields(self):
time_instant = TimeInstant(["field1", "field2"], time=1.0)
Expand Down

0 comments on commit f57c890

Please sign in to comment.