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
c2477057
Commit
c2477057
authored
Mar 30, 2020
by
Dennis Gläser
Committed by
Timo Koch
Mar 30, 2020
Browse files
[mpfa][localassembler] set outsideTij to zero when encountering zero coefficients
parent
438cc76a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/cellcentered/mpfa/omethod/localassembler.hh
View file @
c2477057
...
...
@@ -25,6 +25,8 @@
#ifndef DUMUX_DISCRETIZATION_CC_MPFA_O_LOCAL_ASSEMBLER_HH
#define DUMUX_DISCRETIZATION_CC_MPFA_O_LOCAL_ASSEMBLER_HH
#include <algorithm>
#include <dumux/discretization/cellcentered/mpfa/localassemblerbase.hh>
#include <dumux/discretization/cellcentered/mpfa/localassemblerhelper.hh>
#include <dumux/discretization/cellcentered/mpfa/computetransmissibility.hh>
...
...
@@ -104,6 +106,14 @@ public:
A
[
zeroRowIndices
.
first
]
=
0.0
;
handle
.
CA
()[
faceIdx
]
=
0.0
;
handle
.
T
()[
faceIdx
]
=
0.0
;
// reset outside transmissibilities on surface grids
static
constexpr
int
dim
=
IV
::
Traits
::
GridView
::
dimension
;
static
constexpr
int
dimWorld
=
IV
::
Traits
::
GridView
::
dimensionworld
;
if
constexpr
(
dim
<
dimWorld
)
std
::
for_each
(
handle
.
tijOutside
()[
faceIdx
].
begin
(),
handle
.
tijOutside
()[
faceIdx
].
end
(),
[]
(
auto
&
outsideTij
)
{
outsideTij
=
0.0
;
}
);
}
}
}
...
...
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