Skip to content
Snippets Groups Projects
Commit 3b5f871b authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

different versions of addRobinBC added to ProblemVec

parent 760c8ad6
Branches
No related tags found
No related merge requests found
......@@ -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)
{
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment