Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mojtaba Abdolkhani
ogs
Commits
5d30c45d
Commit
5d30c45d
authored
8 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[PL] Comment on creation/initialization of bcs.
parent
4c778f40
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessLib/ProcessVariable.h
+9
-0
9 additions, 0 deletions
ProcessLib/ProcessVariable.h
with
9 additions
and
0 deletions
ProcessLib/ProcessVariable.h
+
9
−
0
View file @
5d30c45d
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment