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
Backofen, Rainer
amdis
Commits
d32efd78
Commit
d32efd78
authored
Sep 21, 2009
by
Thomas Witkowski
Browse files
Small bugfix for periodic boundary conditions.
parent
8f7b82ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/ProblemVec.cc
View file @
d32efd78
...
...
@@ -760,14 +760,14 @@ namespace AMDiS {
ERROR_EXIT
(
"Not yet implemented!
\n
"
);
}
// TODO: ExitMatrix should be called after finishInsertion!
if
(
assembleMatrix
&&
matrix
->
getBoundaryManager
())
matrix
->
getBoundaryManager
()
->
exitMatrix
(
matrix
);
assembledMatrix
[
i
][
j
]
=
true
;
if
(
assembleMatrix
)
matrix
->
finishInsertion
();
// TODO: ExitMatrix should be called after finishInsertion!
if
(
assembleMatrix
&&
matrix
->
getBoundaryManager
())
matrix
->
getBoundaryManager
()
->
exitMatrix
(
matrix
);
if
(
matrix
)
nnz
+=
matrix
->
getBaseMatrix
().
nnz
();
...
...
@@ -966,7 +966,7 @@ namespace AMDiS {
if
(
systemMatrix
&&
(
*
systemMatrix
)[
row
][
col
])
(
*
systemMatrix
)[
row
][
col
]
->
getBoundaryManager
()
->
addBoundaryCondition
(
periodic
);
if
(
rhs
)
if
(
rhs
&&
row
==
col
)
rhs
->
getDOFVector
(
row
)
->
getBoundaryManager
()
->
addBoundaryCondition
(
periodic
);
}
...
...
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