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
711401ab
Commit
711401ab
authored
9 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[volvars] Rename current volVars to curVolVars
parent
2cc6b2e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!617
[WIP] Next
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/implicit/model.hh
+23
-19
23 additions, 19 deletions
dumux/implicit/model.hh
with
23 additions
and
19 deletions
dumux/implicit/model.hh
+
23
−
19
View file @
711401ab
...
...
@@ -129,7 +129,7 @@ public:
// also set the solution of the "previous" time step to the
// initial solution.
uPrev_
=
uCur_
;
prevVolVarsVector_
=
v
olVarsVector_
;
prevVolVarsVector_
=
curV
olVarsVector_
;
}
/*!
...
...
@@ -392,7 +392,7 @@ public:
if
(
GET_PROP_VALUE
(
TypeTag
,
AdaptiveGrid
)
&&
problem_
().
gridAdapt
().
wasAdapted
())
{
uPrev_
=
uCur_
;
prevVolVarsVector_
=
v
olVarsVector_
;
prevVolVarsVector_
=
curV
olVarsVector_
;
updateBoundaryIndices_
();
...
...
@@ -416,7 +416,7 @@ public:
{
}
void
updateVolVars
()
{
v
olVarsVector_
.
update
(
problem_
(),
curSol
());
}
{
curV
olVarsVector_
.
update
(
problem_
(),
curSol
());
}
/*!
* \brief Called by the update() method if it was
...
...
@@ -429,9 +429,7 @@ public:
// previous time step so that we can start the next
// update at a physically meaningful solution.
uCur_
=
uPrev_
;
volVarsVector_
=
prevVolVarsVector_
;
jacAsm_
->
reassembleAll
();
curVolVarsVector_
=
prevVolVarsVector_
;
}
/*!
...
...
@@ -445,7 +443,7 @@ public:
{
// make the current solution the previous one.
uPrev_
=
uCur_
;
prevVolVarsVector_
=
v
olVarsVector_
;
prevVolVarsVector_
=
curV
olVarsVector_
;
}
/*!
...
...
@@ -757,11 +755,11 @@ public:
const
FluxVariables
&
fluxVars
(
unsigned
int
scvfIdx
)
const
{
return
fluxVarsVector_
[
scvfIdx
];
}
const
VolumeVariables
&
v
olVars
(
const
SubControlVolume
&
scv
)
const
{
return
v
olVarsVector_
[
scv
.
index
()];
}
const
VolumeVariables
&
curV
olVars
(
const
SubControlVolume
&
scv
)
const
{
return
curV
olVarsVector_
[
scv
.
index
()];
}
const
VolumeVariables
&
v
olVars
(
unsigned
int
scvIdx
)
const
{
return
v
olVarsVector_
[
scvIdx
];
}
const
VolumeVariables
&
curV
olVars
(
unsigned
int
scvIdx
)
const
{
return
curV
olVarsVector_
[
scvIdx
];
}
const
VolumeVariables
&
prevVolVars
(
const
SubControlVolume
&
scv
)
const
{
return
prevVolVarsVector_
[
scv
.
index
()];
}
...
...
@@ -770,21 +768,27 @@ public:
{
return
prevVolVarsVector_
[
scvIdx
];
}
const
FVElementGeometryVector
&
fvGeometries
()
const
{
return
fvGeometries_
;
}
{
return
*
fvGeometries_
;
}
const
Stencils
&
stencils
(
const
Element
&
element
)
const
{
return
stencilsVector_
[
elementMapper
().
index
(
element
)];
}
const
Stencils
&
stencils
(
unsigned
int
eIdx
)
const
{
return
stencilsVector_
[
eIdx
];
}
const
FVElementGeometry
&
fvGeometries
(
const
Element
&
element
)
const
{
return
fvGeometries_
.
fvGeometry
(
elementMapper
().
index
(
element
));
}
{
return
fvGeometries_
->
fvGeometry
(
elementMapper
().
index
(
element
));
}
const
FVElementGeometry
&
fvGeometries
(
unsigned
int
eIdx
)
const
{
return
fvGeometries_
.
fvGeometry
(
eIdx
);
}
{
return
fvGeometries_
->
fvGeometry
(
eIdx
);
}
protected
:
// only to be called by friends and deriving classes
VolumeVariables
&
v
olVars_
(
const
SubControlVolume
&
scv
)
{
return
v
olVarsVector_
[
scv
.
index
()];
}
VolumeVariables
&
curV
olVars_
(
const
SubControlVolume
&
scv
)
{
return
curV
olVarsVector_
[
scv
.
index
()];
}
VolumeVariables
&
v
olVars_
(
unsigned
int
scvIdx
)
{
return
v
olVarsVector_
[
scvIdx
];
}
VolumeVariables
&
curV
olVars_
(
unsigned
int
scvIdx
)
{
return
curV
olVarsVector_
[
scvIdx
];
}
VolumeVariables
&
prevVolVars_
(
const
SubControlVolume
&
scv
)
{
return
prevVolVarsVector_
[
scv
.
index
()];
}
...
...
@@ -940,7 +944,7 @@ protected:
SolutionVector
uPrev_
;
// the current and previous variables (primary and secondary variables)
VolumeVariablesVector
v
olVarsVector_
;
VolumeVariablesVector
curV
olVarsVector_
;
VolumeVariablesVector
prevVolVarsVector_
;
// the flux variables vector
...
...
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