Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasEppacher committed Aug 29, 2024
1 parent 8cea45e commit a2f2fed
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ def __init__(self, function_space, forcing_term_expr, solution_expr, coupling_bo
self.coupling_expression = coupling_expr
self.t_start = 0.0

# set mesh and function space for future reference
# save function space for future reference
self.V = function_space

# Forcing term
self.forcing_term_expr = forcing_term_expr

# Solution expression for error comparison and as boundary condition
# on the non-coupling boundary
self.solution_expr = solution_expr

# invoke super init
super(fenics_heat_2d, self).__init__(self.V)
Expand All @@ -58,14 +65,7 @@ def __init__(self, function_space, forcing_term_expr, solution_expr, coupling_bo
a_K = -1.0 * inner(nabla_grad(u), nabla_grad(v)) * dx
self.K = assemble(a_K)

# Forcing term
self.forcing_term_expr = forcing_term_expr

# Solution expression for error comparison and as boundary condition
# on the non-coupling boundary
self.solution_expr = solution_expr

# Currently only for Dirichlet boundary, has to be changed for Neumann boundary
# Currently only Dirichlet participant is supported
if self.precice.get_participant_name() == ProblemType.DIRICHLET.value:
self.couplingBC = DirichletBC(self.V, coupling_expr, coupling_boundary)

Expand Down

0 comments on commit a2f2fed

Please sign in to comment.