Commit 3b5f871b authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

different versions of addRobinBC added to ProblemVec

parent 760c8ad6
...@@ -1336,6 +1336,39 @@ namespace AMDiS { ...@@ -1336,6 +1336,39 @@ namespace AMDiS {
rhs->getDOFVector(row)->getBoundaryManager()->addBoundaryCondition(robin); 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) void ProblemVec::addPeriodicBC(BoundaryType type, int row, int col)
{ {
......
...@@ -261,6 +261,16 @@ namespace AMDiS { ...@@ -261,6 +261,16 @@ namespace AMDiS {
AbstractFunction<double, WorldVector<double> > *n, AbstractFunction<double, WorldVector<double> > *n,
AbstractFunction<double, WorldVector<double> > *r); 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. /// Adds a periodic boundary condition.
virtual void addPeriodicBC(BoundaryType type, int row, int col); virtual void addPeriodicBC(BoundaryType type, int row, int col);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment