Skip to content
GitLab
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
14ff4306
Commit
14ff4306
authored
Jul 19, 2019
by
Dennis Gläser
Browse files
[poroelastic][cm] fix coupling stencils
parent
f0cf0b3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/geomechanics/poroelastic/couplingmanager.hh
View file @
14ff4306
...
...
@@ -392,18 +392,15 @@ private:
// firstly, the element couples to the nodal dofs in itself
for
(
int
i
=
0
;
i
<
element
.
geometry
().
corners
();
++
i
)
pmFlowCouplingMap_
[
eIdx
].
push_back
(
p
mFlow
GridGeom
.
vertexMapper
().
subIndex
(
element
,
i
,
dim
)
);
pmFlowCouplingMap_
[
eIdx
].
push_back
(
p
oroMech
GridGeom
.
vertexMapper
().
subIndex
(
element
,
i
,
dim
)
);
// the pm flow problem couples to the same elements as in its own stencil
// due to the dependency of the residual on all permeabilities in its stencil,
// which in turn depend on the mechanical deformations.
const
auto
&
inverseConnectivity
=
pmFlowGridGeom
.
connectivityMap
()[
eIdx
];
for
(
const
auto
&
dataJ
:
inverseConnectivity
)
{
const
auto
elemJ
=
pmFlowGridGeom
.
element
(
dataJ
.
globalJ
);
for
(
int
i
=
0
;
i
<
elemJ
.
geometry
().
corners
();
++
i
)
pmFlowCouplingMap_
[
dataJ
.
globalJ
].
push_back
(
pmFlowGridGeom
.
vertexMapper
().
subIndex
(
elemJ
,
i
,
dim
)
);
}
for
(
int
i
=
0
;
i
<
element
.
geometry
().
corners
();
++
i
)
pmFlowCouplingMap_
[
dataJ
.
globalJ
].
push_back
(
poroMechGridGeom
.
vertexMapper
().
subIndex
(
element
,
i
,
dim
)
);
}
// make stencils unique
...
...
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