Skip to content
Snippets Groups Projects
Commit 5d30c45d authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Comment on creation/initialization of bcs.

parent 4c778f40
No related branches found
No related tags found
No related merge requests found
...@@ -67,10 +67,14 @@ public: ...@@ -67,10 +67,14 @@ public:
const int variable_id, const int variable_id,
const int component_id) const int component_id)
{ {
// Find all boundary conditions matching the component id. There can be
// more than one such boundary condition.
for (auto& bc_config : _dirichlet_bc_configs) for (auto& bc_config : _dirichlet_bc_configs)
{ {
if (bc_config.second != component_id) if (bc_config.second != component_id)
continue; continue;
// Create/initialize the boundary condition with matching component
// id and output it through the OutputIterator.
DirichletBc<GlobalIndexType> bc; DirichletBc<GlobalIndexType> bc;
bc_config.first->initialize(searcher, dof_table, variable_id, bc_config.first->initialize(searcher, dof_table, variable_id,
component_id, bc); component_id, bc);
...@@ -86,10 +90,15 @@ public: ...@@ -86,10 +90,15 @@ public:
const int variable_id, const int variable_id,
const int component_id) const int component_id)
{ {
// Find all boundary conditions matching the component id. There can be
// more than one such boundary condition.
for (auto& bc_config : _neumann_bc_configs) for (auto& bc_config : _neumann_bc_configs)
{ {
if (bc_config.second != component_id) if (bc_config.second != component_id)
continue; continue;
// Create/initialize the boundary condition with matching component
// id and output it through the OutputIterator.
bc_config.first->initialize(searcher); bc_config.first->initialize(searcher);
bcs++ = std::unique_ptr<NeumannBc<GlobalSetup>>{ bcs++ = std::unique_ptr<NeumannBc<GlobalSetup>>{
new NeumannBc<GlobalSetup>(*bc_config.first, new NeumannBc<GlobalSetup>(*bc_config.first,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment