Skip to content

Commit

Permalink
Changed requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
larsson4 committed Mar 2, 2024
1 parent 50fcc96 commit 5c5e10f
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions src/linelast_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void LinElastSolver::SetupRHSBCOperators()
{
bs[m]->AddBdrFaceIntegrator(new VectorBoundaryLFIntegrator(*bdr_coeffs[b]), *bdr_markers[b]);
}

if (!BCExistsOnBdr(b))
continue;

Expand Down Expand Up @@ -460,23 +460,13 @@ void LinElastSolver::SetParameterizedProblem(ParameterizedProblem *problem)

if (ti >=0)
{
type_idx[b] = (LinElastProblem::BoundaryType)problem->bdr_type[ti];
switch (problem->bdr_type[ti])
{
case LinElastProblem::BoundaryType::DIRICHLET:
assert(problem->vector_bdr_ptr[ti]);

AddBCFunction(*(problem->vector_bdr_ptr[ti]), problem->battr[ti]);
break;
case LinElastProblem::BoundaryType::NEUMANN:
assert(problem->vector_bdr_ptr[ti]);
AddBCFunction(*(problem->vector_bdr_ptr[ti]), problem->battr[ti]);

default:
break;
}
type_idx[b] = (LinElastProblem::BoundaryType)problem->bdr_type[ti];
if (problem->bdr_type[ti] == LinElastProblem::BoundaryType::DIRICHLET || problem->bdr_type[ti] == LinElastProblem::BoundaryType::NEUMANN)
{
assert(problem->vector_bdr_ptr[ti]);
AddBCFunction(*(problem->vector_bdr_ptr[ti]), problem->battr[ti]);
}
}

}

// Set RHS
Expand Down

0 comments on commit 5c5e10f

Please sign in to comment.