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
45d64e0e
Commit
45d64e0e
authored
9 years ago
by
Stefan Girke
Browse files
Options
Downloads
Patches
Plain Diff
correct parameter selection for dgdiffusionflux in diverent fluxes
parent
1b31d089
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/fem-dg/operator/fluxes/averageflux.hh
+6
-3
6 additions, 3 deletions
dune/fem-dg/operator/fluxes/averageflux.hh
dune/fem-dg/operator/fluxes/ldgflux.hh
+6
-3
6 additions, 3 deletions
dune/fem-dg/operator/fluxes/ldgflux.hh
with
12 additions
and
6 deletions
dune/fem-dg/operator/fluxes/averageflux.hh
+
6
−
3
View file @
45d64e0e
...
...
@@ -38,6 +38,8 @@ namespace Dune {
enum
{
dimGradRange
=
dimDomain
*
dimRange
};
enum
{
polOrd
=
DiscreteFunctionSpaceType
::
polynomialOrder
};
typedef
typename
BaseType
::
ParameterType
ParameterType
;
#if DUNE_VERSION_NEWER_REV(DUNE_FEM,1,1,0)
// type of gradient space
typedef
typename
DiscreteFunctionSpaceType
::
...
...
@@ -68,9 +70,10 @@ namespace Dune {
* @brief constructor
*/
LDGDiffusionFlux
(
GridPartType
&
gridPart
,
const
Model
&
mod
)
:
BaseType
(
mod
),
penalty_
(
Fem
::
Parameter
::
getValue
<
double
>
(
"dgdiffusionflux.penalty"
)
),
const
Model
&
mod
,
const
ParameterType
&
param
)
:
BaseType
(
mod
,
true
,
param
),
penalty_
(
parameter
().
penalty
()
),
// Set CFL number for penalty term (compare diffusion in first pass)
penaltyTerm_
(
std
::
abs
(
penalty_
)
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
dune/fem-dg/operator/fluxes/ldgflux.hh
+
6
−
3
View file @
45d64e0e
...
...
@@ -38,6 +38,8 @@ namespace Dune {
enum
{
dimGradRange
=
dimDomain
*
dimRange
};
enum
{
polOrd
=
DiscreteFunctionSpaceType
::
polynomialOrder
};
typedef
typename
BaseType
::
ParameterType
ParameterType
;
// type of gradient space
typedef
typename
BaseType
::
DiscreteGradientSpaceType
DiscreteGradientSpaceType
;
...
...
@@ -64,9 +66,10 @@ namespace Dune {
* @brief constructor
*/
LDGDiffusionFlux
(
GridPartType
&
gridPart
,
const
Model
&
model
)
:
BaseType
(
model
,
true
),
penalty_
(
Fem
::
Parameter
::
getValue
<
double
>
(
"dgdiffusionflux.penalty"
)),
const
Model
&
model
,
const
ParameterType
&
param
)
:
BaseType
(
model
,
true
,
param
),
penalty_
(
parameter
().
penalty
()
),
// Set CFL number for penalty term (compare diffusion in first pass)
penaltyTerm_
(
std
::
abs
(
penalty_
)
>
0
)
{
...
...
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