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
225e95cf
Commit
225e95cf
authored
7 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[fvlocalassembler] Remove superfluous member function
parent
a878e4c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!737
Improve assembly more
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/assembly/fvlocalassemblerbase.hh
+8
-11
8 additions, 11 deletions
dumux/assembly/fvlocalassemblerbase.hh
with
8 additions
and
11 deletions
dumux/assembly/fvlocalassemblerbase.hh
+
8
−
11
View file @
225e95cf
...
...
@@ -41,9 +41,9 @@ namespace Dumux {
* \brief A base class for all local assemblers
* \tparam TypeTag The TypeTag
* \tparam Assembler The assembler type
* \tparam implicit Specifies whether the time discretization is implicit or not not (i.e. explicit)
* \tparam i
sI
mplicit Specifies whether the time discretization is implicit or not not (i.e. explicit)
*/
template
<
class
TypeTag
,
class
Assembler
,
class
Implementation
,
bool
implicit
>
template
<
class
TypeTag
,
class
Assembler
,
class
Implementation
,
bool
i
sI
mplicit
>
class
FVLocalAssemblerBase
{
using
Problem
=
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
);
...
...
@@ -88,7 +88,7 @@ public:
*/
auto
evalLocalResidual
()
const
{
if
(
this
->
assembler
().
isStationaryProblem
()
&&
!
isImplicit
()
)
if
(
this
->
assembler
().
isStationaryProblem
()
&&
!
isImplicit
)
DUNE_THROW
(
Dune
::
InvalidStateException
,
"Using explicit jacobian assembler with stationary local residual"
);
if
(
elementIsGhost
())
...
...
@@ -97,8 +97,8 @@ public:
return
ResdiualType
(
0.0
);
}
return
isImplicit
()
?
evalLocalResidual
(
curElemVolVars
())
:
evalLocalResidual
(
prevElemVolVars
());
return
isImplicit
?
evalLocalResidual
(
curElemVolVars
())
:
evalLocalResidual
(
prevElemVolVars
());
}
/*!
...
...
@@ -124,8 +124,8 @@ public:
*/
auto
evalLocalFluxAndSourceResidual
()
const
{
return
isImplicit
()
?
evalLocalFluxAndSourceResidual
(
curElemVolVars
())
:
evalLocalFluxAndSourceResidual
(
prevElemVolVars
());
return
isImplicit
?
evalLocalFluxAndSourceResidual
(
curElemVolVars
())
:
evalLocalFluxAndSourceResidual
(
prevElemVolVars
());
}
/*!
...
...
@@ -167,7 +167,7 @@ public:
// bind the caches
fvGeometry
.
bind
(
element
);
if
(
isImplicit
()
)
if
(
isImplicit
)
{
curElemVolVars
.
bind
(
element
,
fvGeometry
,
curSol
);
elemFluxVarsCache
.
bind
(
element
,
fvGeometry
,
curElemVolVars
);
...
...
@@ -250,9 +250,6 @@ public:
const
LocalResidual
&
localResidual
()
const
{
return
localResidual_
;
}
constexpr
bool
isImplicit
()
const
{
return
implicit
;
}
protected
:
Implementation
&
asImp_
()
{
return
*
static_cast
<
Implementation
*>
(
this
);
}
...
...
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