Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
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
Service Desk
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
dune-fem
dune-fem-dg
Commits
b28d45ee
Commit
b28d45ee
authored
2 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup][Model] Added method reset to unset coefficients. Not used yet.
parent
613a493e
No related branches found
No related tags found
1 merge request
!48
[feature][FVOperator] A specialized FV operator for finite volume.
Pipeline
#60140
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/fem-dg/models/defaultmodel.hh
+5
-0
5 additions, 0 deletions
dune/fem-dg/models/defaultmodel.hh
dune/fem-dg/models/modelwrapper.hh
+12
-1
12 additions, 1 deletion
dune/fem-dg/models/modelwrapper.hh
with
17 additions
and
1 deletion
dune/fem-dg/models/defaultmodel.hh
+
5
−
0
View file @
b28d45ee
...
...
@@ -668,6 +668,11 @@ namespace Fem
{
}
// counter part to setEntity
void
reset
()
const
{
}
void
setTime
(
double
time
)
{
time_
=
time
;
...
...
This diff is collapsed.
Click to expand it.
dune/fem-dg/models/modelwrapper.hh
+
12
−
1
View file @
b28d45ee
...
...
@@ -232,6 +232,14 @@ namespace Fem
diffusion
().
init
(
entity
);
}
void
reset
()
const
{
if
constexpr
(
hasAdvection
)
advection
().
unbind
();
if
constexpr
(
hasDiffusion
)
diffusion
().
unbind
();
}
inline
bool
hasStiffSource
()
const
{
return
AdditionalType
::
hasStiffSource
;
}
inline
bool
hasNonStiffSource
()
const
{
return
AdditionalType
::
hasNonStiffSource
;
}
inline
bool
hasFlux
()
const
{
return
AdditionalType
::
hasFlux
;
}
...
...
@@ -336,7 +344,10 @@ namespace Fem
inline
double
diffusionTimeStep
(
const
LocalEvaluation
&
local
,
const
RangeType
&
u
)
const
{
return
diffusion
().
diffusionTimeStep
(
local
.
entity
(),
local
.
quadraturePoint
(),
u
);
if
constexpr
(
hasDiffusion
)
return
diffusion
().
diffusionTimeStep
(
local
.
entity
(),
local
.
quadraturePoint
(),
u
);
else
return
1e308
;
}
// is not used
...
...
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