Skip to content

Commit 1b15c0f

Browse files
IshaanDesaiBenjaminRodenberg
authored andcommitted
Adding comment to explain why a function space is passed twice to initialization
1 parent ea14b9d commit 1b15c0f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

FSI/cylinderFlap/OpenFOAM-FEniCS/Solid/cyl-flap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def remaining_boundary(x, on_boundary):
8888
force_boundary = AutoSubDomain(remaining_boundary)
8989

9090
# Initialize the coupling interface
91+
# Function space V is passed twice as both read and write functions are defined using the same space
9192
precice_dt = precice.initialize(coupling_boundary, read_function_space=V, write_object=V,
9293
fixed_boundary=clamped_boundary_domain)
9394

FSI/flap_perp/OpenFOAM-FEniCS/Solid/perp-flap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def neumann_boundary(x, on_boundary):
7272
force_boundary = AutoSubDomain(neumann_boundary)
7373

7474
# Initialize the coupling interface
75+
# Function space V is passed twice as both read and write functions are defined using the same space
7576
precice_dt = precice.initialize(coupling_boundary, read_function_space=V, write_object=V,
7677
fixed_boundary=clamped_boundary_domain)
7778

0 commit comments

Comments
 (0)