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
11bf0466
Commit
11bf0466
authored
2 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix][Models] Use RangeFieldType for pressure and temperature.
parent
fd27e0d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!48
[feature][FVOperator] A specialized FV operator for finite volume.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/fem-dg/models/defaultmodel.hh
+2
-1
2 additions, 1 deletion
dune/fem-dg/models/defaultmodel.hh
dune/fem-dg/models/modelwrapper.hh
+1
-1
1 addition, 1 deletion
dune/fem-dg/models/modelwrapper.hh
with
3 additions
and
2 deletions
dune/fem-dg/models/defaultmodel.hh
+
2
−
1
View file @
11bf0466
...
...
@@ -156,6 +156,7 @@ namespace Fem
typedef
FunctionSpaceType
DFunctionSpaceType
;
typedef
FunctionSpaceType
RFunctionSpaceType
;
typedef
typename
Traits
::
DomainType
DomainType
;
typedef
typename
FunctionSpaceType
::
RangeFieldType
RangeFieldType
;
typedef
typename
Traits
::
RangeType
RangeType
;
typedef
typename
Traits
::
GradientType
GradientType
;
typedef
typename
Traits
::
FluxRangeType
FluxRangeType
;
...
...
@@ -222,7 +223,7 @@ namespace Fem
* \brief compute pressure and temperature for compressible flow
*/
template
<
class
State
>
void
pressureTemperature
(
const
State
&
u
,
double
&
p
,
doubl
e
&
T
)
const
void
pressureTemperature
(
const
State
&
u
,
RangeFieldType
&
p
,
RangeFieldTyp
e
&
T
)
const
{
p
=
0.0
;
T
=
0.0
;
...
...
This diff is collapsed.
Click to expand it.
dune/fem-dg/models/modelwrapper.hh
+
1
−
1
View file @
11bf0466
...
...
@@ -250,7 +250,7 @@ namespace Fem
}
template
<
class
State
>
// double[dim+2]
void
pressureTemperature
(
const
State
&
u
,
double
&
p
,
doubl
e
&
T
)
const
void
pressureTemperature
(
const
State
&
u
,
RangeFieldType
&
p
,
RangeFieldTyp
e
&
T
)
const
{
if
constexpr
(
hasAdvection
)
{
...
...
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