From 5d30c45dee9e84fb5864285e90cdb29be928a63d Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Tue, 7 Jun 2016 01:47:01 +0000
Subject: [PATCH] [PL] Comment on creation/initialization of bcs.

---
 ProcessLib/ProcessVariable.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ProcessLib/ProcessVariable.h b/ProcessLib/ProcessVariable.h
index 5ce2566e92d..3b2e05b06ee 100644
--- a/ProcessLib/ProcessVariable.h
+++ b/ProcessLib/ProcessVariable.h
@@ -67,10 +67,14 @@ public:
         const int variable_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)
         {
             if (bc_config.second != component_id)
                 continue;
+            // Create/initialize the boundary condition with matching component
+            // id and output it through the OutputIterator.
             DirichletBc<GlobalIndexType> bc;
             bc_config.first->initialize(searcher, dof_table, variable_id,
                                         component_id, bc);
@@ -86,10 +90,15 @@ public:
                           const int variable_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)
         {
             if (bc_config.second != component_id)
                 continue;
+
+            // Create/initialize the boundary condition with matching component
+            // id and output it through the OutputIterator.
             bc_config.first->initialize(searcher);
             bcs++ = std::unique_ptr<NeumannBc<GlobalSetup>>{
                 new NeumannBc<GlobalSetup>(*bc_config.first,
-- 
GitLab