Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
0bc2d4ae
Commit
0bc2d4ae
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[facet][box] make cm work for explicit time discretization
parent
94de80d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1288
Feature/md explicit assembler
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/multidomain/facet/box/couplingmanager.hh
+22
-2
22 additions, 2 deletions
dumux/multidomain/facet/box/couplingmanager.hh
with
22 additions
and
2 deletions
dumux/multidomain/facet/box/couplingmanager.hh
+
22
−
2
View file @
0bc2d4ae
...
@@ -468,11 +468,12 @@ public:
...
@@ -468,11 +468,12 @@ public:
{
{
const
auto
&
ldGridGeometry
=
this
->
problem
(
lowDimId
).
fvGridGeometry
();
const
auto
&
ldGridGeometry
=
this
->
problem
(
lowDimId
).
fvGridGeometry
();
const
auto
&
ldSol
=
Assembler
::
isImplicit
()
?
this
->
curSol
()[
lowDimId
]
:
assembler
.
prevSol
()[
lowDimId
];
const
auto
elemJ
=
ldGridGeometry
.
element
(
lowDimElemIdx
);
const
auto
elemJ
=
ldGridGeometry
.
element
(
lowDimElemIdx
);
auto
fvGeom
=
localView
(
ldGridGeometry
);
auto
fvGeom
=
localView
(
ldGridGeometry
);
auto
elemVolVars
=
localView
(
assembler
.
gridVariables
(
lowDimId
).
curGridVolVars
());
auto
elemVolVars
=
localView
(
assembler
.
gridVariables
(
lowDimId
).
curGridVolVars
());
fvGeom
.
bindElement
(
elemJ
);
fvGeom
.
bindElement
(
elemJ
);
elemVolVars
.
bindElement
(
elemJ
,
fvGeom
,
this
->
curSol
()[
lowDimId
]
);
elemVolVars
.
bindElement
(
elemJ
,
fvGeom
,
ldSol
);
// TODO interpolated volvars
// TODO interpolated volvars
bulkContext_
.
isSet
=
true
;
bulkContext_
.
isSet
=
true
;
...
@@ -525,9 +526,10 @@ public:
...
@@ -525,9 +526,10 @@ public:
auto
bulkElemVolVars
=
localView
(
assembler
.
gridVariables
(
bulkId
).
curGridVolVars
());
auto
bulkElemVolVars
=
localView
(
assembler
.
gridVariables
(
bulkId
).
curGridVolVars
());
auto
bulkElemFluxVarsCache
=
localView
(
assembler
.
gridVariables
(
bulkId
).
gridFluxVarsCache
());
auto
bulkElemFluxVarsCache
=
localView
(
assembler
.
gridVariables
(
bulkId
).
gridFluxVarsCache
());
const
auto
&
bulkSol
=
Assembler
::
isImplicit
()
?
this
->
curSol
()[
bulkId
]
:
assembler
.
prevSol
()[
bulkId
];
const
auto
curBulkElem
=
bulkGridGeom
.
element
(
embedments
[
i
].
first
);
const
auto
curBulkElem
=
bulkGridGeom
.
element
(
embedments
[
i
].
first
);
bulkFvGeom
.
bind
(
curBulkElem
);
bulkFvGeom
.
bind
(
curBulkElem
);
bulkElemVolVars
.
bind
(
curBulkElem
,
bulkFvGeom
,
this
->
curSol
()[
bulkId
]
);
bulkElemVolVars
.
bind
(
curBulkElem
,
bulkFvGeom
,
bulkSol
);
bulkElemFluxVarsCache
.
bind
(
curBulkElem
,
bulkFvGeom
,
bulkElemVolVars
);
bulkElemFluxVarsCache
.
bind
(
curBulkElem
,
bulkFvGeom
,
bulkElemVolVars
);
lowDimContext_
.
isSet
=
true
;
lowDimContext_
.
isSet
=
true
;
...
@@ -557,6 +559,12 @@ public:
...
@@ -557,6 +559,12 @@ public:
// communicate deflected solution
// communicate deflected solution
ParentType
::
updateCouplingContext
(
domainI
,
bulkLocalAssembler
,
domainJ
,
dofIdxGlobalJ
,
priVarsJ
,
pvIdxJ
);
ParentType
::
updateCouplingContext
(
domainI
,
bulkLocalAssembler
,
domainJ
,
dofIdxGlobalJ
,
priVarsJ
,
pvIdxJ
);
// Since coupling only occurs via the fluxes, the context does not
// have to be updated in explicit time discretization schemes, where
// they are strictly evaluated on the old time level
if
(
!
BulkLocalAssembler
::
isImplicit
())
return
;
// skip the rest if context is empty
// skip the rest if context is empty
if
(
bulkContext_
.
isSet
)
if
(
bulkContext_
.
isSet
)
{
{
...
@@ -637,6 +645,12 @@ public:
...
@@ -637,6 +645,12 @@ public:
// communicate deflected solution
// communicate deflected solution
ParentType
::
updateCouplingContext
(
domainI
,
lowDimLocalAssembler
,
domainJ
,
dofIdxGlobalJ
,
priVarsJ
,
pvIdxJ
);
ParentType
::
updateCouplingContext
(
domainI
,
lowDimLocalAssembler
,
domainJ
,
dofIdxGlobalJ
,
priVarsJ
,
pvIdxJ
);
// Since coupling only occurs via the fluxes, the context does not
// have to be updated in explicit time discretization schemes, where
// they are strictly evaluated on the old time level
if
(
!
LowDimLocalAssembler
::
isImplicit
())
return
;
// skip the rest if context is empty
// skip the rest if context is empty
if
(
lowDimContext_
.
isSet
)
if
(
lowDimContext_
.
isSet
)
{
{
...
@@ -690,6 +704,12 @@ public:
...
@@ -690,6 +704,12 @@ public:
// communicate deflected solution
// communicate deflected solution
ParentType
::
updateCouplingContext
(
domainI
,
lowDimLocalAssembler
,
domainJ
,
dofIdxGlobalJ
,
priVarsJ
,
pvIdxJ
);
ParentType
::
updateCouplingContext
(
domainI
,
lowDimLocalAssembler
,
domainJ
,
dofIdxGlobalJ
,
priVarsJ
,
pvIdxJ
);
// Since coupling only occurs via the fluxes, the context does not
// have to be updated in explicit time discretization schemes, where
// they are strictly evaluated on the old time level
if
(
!
LowDimLocalAssembler
::
isImplicit
())
return
;
// skip the rest if context is empty
// skip the rest if context is empty
if
(
lowDimContext_
.
isSet
)
if
(
lowDimContext_
.
isSet
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment