Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
438cc76a
Commit
438cc76a
authored
Mar 30, 2020
by
Dennis Gläser
Committed by
Timo Koch
Mar 30, 2020
Browse files
[mpfa][localassembler] detect zero transmissibilities also in outside scvs
parent
b52068c7
Changes
1
Show whitespace changes
Inline
Side-by-side
dumux/discretization/cellcentered/mpfa/omethod/localassembler.hh
View file @
438cc76a
...
...
@@ -250,11 +250,13 @@ private:
{
if
(
abs
(
wijk
[
faceIdx
][
0
][
localDir
])
<
wijZeroThresh
)
{
insideZeroWij
=
!
curGlobalScvf
.
boundary
();
if
(
!
curIsDirichlet
)
{
insideZeroWij
=
true
;
faceMarkers
.
emplace_back
(
std
::
make_pair
(
curLocalDofIdx
,
faceIdx
)
);
}
}
}
// if we are not on a Dirichlet face, add entries associated with unknown face pressures
// i.e. in matrix C and maybe A (if current face is not a Dirichlet face)
...
...
@@ -308,7 +310,8 @@ private:
const
auto
&
otherLocalScvf
=
iv
.
localScvf
(
otherLocalScvfIdx
);
const
auto
otherLocalDofIdx
=
otherLocalScvf
.
localDofIndex
();
if
(
otherLocalDofIdx
==
curLocalDofIdx
&&
insideZeroWij
)
// check for zero transmissibilities (skip if inside has been zero already)
if
(
otherLocalDofIdx
==
curLocalDofIdx
&&
!
insideZeroWij
)
if
(
abs
(
wijk
[
faceIdx
][
idxOnScvf
][
localDir
])
<
wijZeroThresh
)
faceMarkers
.
emplace_back
(
std
::
make_pair
(
curLocalDofIdx
,
faceIdx
)
);
...
...
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