Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
2e5d837b
Commit
2e5d837b
authored
Dec 13, 2012
by
Thomas Witkowski
Browse files
Fixed bug with dirichlet values.
parent
2fc80215
Changes
4
Show whitespace changes
Inline
Side-by-side
AMDiS/src/DOFMatrix.cc
View file @
2e5d837b
AMDiS/src/DirichletBC.cc
View file @
2e5d837b
...
@@ -81,4 +81,13 @@ namespace AMDiS {
...
@@ -81,4 +81,13 @@ namespace AMDiS {
}
}
}
}
void
DirichletBC
::
initVector
(
DOFVectorBase
<
double
>*
vec
)
{
FUNCNAME
(
"DirichletBC::initVector()"
);
if
(
dynamic_cast
<
DOFVector
<
double
>*>
(
vec
))
dynamic_cast
<
DOFVector
<
double
>*>
(
vec
)
->
getDirichletValues
().
clear
();
}
}
}
AMDiS/src/DirichletBC.h
View file @
2e5d837b
...
@@ -68,6 +68,9 @@ namespace AMDiS {
...
@@ -68,6 +68,9 @@ namespace AMDiS {
const
BoundaryType
*
localBound
,
const
BoundaryType
*
localBound
,
int
nBasFcts
);
int
nBasFcts
);
///
void
initVector
(
DOFVectorBase
<
double
>*
);
/// Implementation of BoundaryCondition::boundResidual().
/// Implementation of BoundaryCondition::boundResidual().
double
boundResidual
(
ElInfo
*
,
double
boundResidual
(
ElInfo
*
,
DOFMatrix
*
,
DOFMatrix
*
,
...
...
AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
View file @
2e5d837b
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include
<mpi.h>
#include
<mpi.h>
#include
"DirichletBC.h"
#include
"DirichletBC.h"
#include
"DOFVector.h"
#include
"parallel/PetscSolverGlobalMatrix.h"
#include
"parallel/PetscSolverGlobalMatrix.h"
#include
"parallel/StdMpi.h"
#include
"parallel/StdMpi.h"
#include
"parallel/MpiHelper.h"
#include
"parallel/MpiHelper.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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