Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
3b5f871b
Commit
3b5f871b
authored
Jan 24, 2011
by
Praetorius, Simon
Browse files
different versions of addRobinBC added to ProblemVec
parent
760c8ad6
Changes
2
Show whitespace changes
Inline
Side-by-side
AMDiS/src/ProblemVec.cc
View file @
3b5f871b
...
...
@@ -1336,6 +1336,39 @@ namespace AMDiS {
rhs
->
getDOFVector
(
row
)
->
getBoundaryManager
()
->
addBoundaryCondition
(
robin
);
}
void
ProblemVec
::
addRobinBC
(
BoundaryType
type
,
int
row
,
int
col
,
DOFVector
<
double
>
*
n
,
DOFVector
<
double
>
*
r
)
{
FUNCNAME
(
"ProblemVec::addRobinBC()"
);
boundaryConditionSet
=
true
;
RobinBC
*
robin
=
new
RobinBC
(
type
,
n
,
r
,
componentSpaces
[
row
],
componentSpaces
[
col
]);
if
(
systemMatrix
&&
(
*
systemMatrix
)[
row
][
col
])
(
*
systemMatrix
)[
row
][
col
]
->
getBoundaryManager
()
->
addBoundaryCondition
(
robin
);
if
(
rhs
)
rhs
->
getDOFVector
(
row
)
->
getBoundaryManager
()
->
addBoundaryCondition
(
robin
);
}
void
ProblemVec
::
addRobinBC
(
BoundaryType
type
,
int
row
,
int
col
,
Operator
*
n
,
Operator
*
r
)
{
FUNCNAME
(
"ProblemVec::addRobinBC()"
);
boundaryConditionSet
=
true
;
RobinBC
*
robin
=
new
RobinBC
(
type
,
n
,
r
,
componentSpaces
[
row
],
componentSpaces
[
col
]);
if
(
systemMatrix
&&
(
*
systemMatrix
)[
row
][
col
])
(
*
systemMatrix
)[
row
][
col
]
->
getBoundaryManager
()
->
addBoundaryCondition
(
robin
);
if
(
rhs
)
rhs
->
getDOFVector
(
row
)
->
getBoundaryManager
()
->
addBoundaryCondition
(
robin
);
}
void
ProblemVec
::
addPeriodicBC
(
BoundaryType
type
,
int
row
,
int
col
)
{
...
...
AMDiS/src/ProblemVec.h
View file @
3b5f871b
...
...
@@ -261,6 +261,16 @@ namespace AMDiS {
AbstractFunction
<
double
,
WorldVector
<
double
>
>
*
n
,
AbstractFunction
<
double
,
WorldVector
<
double
>
>
*
r
);
/// Adds Robin boundary condition.
virtual
void
addRobinBC
(
BoundaryType
type
,
int
row
,
int
col
,
DOFVector
<
double
>
*
n
,
DOFVector
<
double
>
*
r
);
/// Adds Robin boundary condition.
virtual
void
addRobinBC
(
BoundaryType
type
,
int
row
,
int
col
,
Operator
*
n
,
Operator
*
r
);
/// Adds a periodic boundary condition.
virtual
void
addPeriodicBC
(
BoundaryType
type
,
int
row
,
int
col
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment