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
70563771
Commit
70563771
authored
4 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
added a 'user' for the indicator type which required that the external indicator is set
parent
bcfbc80d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!15
Exchange troubled cell
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fem-dg/operator/limiter/limitpass.hh
+14
-7
14 additions, 7 deletions
dune/fem-dg/operator/limiter/limitpass.hh
with
14 additions
and
7 deletions
dune/fem-dg/operator/limiter/limitpass.hh
+
14
−
7
View file @
70563771
...
...
@@ -352,7 +352,7 @@ namespace Fem
reconstruct_
(
false
),
admissibleFunctions_
(
getAdmissibleFunctions
(
parameter
)
),
usedAdmissibleFunctions_
(
admissibleFunctions_
),
extTroubledCellIndicator_
(
indicator_
==
2
extTroubledCellIndicator_
(
indicator_
==
3
?
new
ModalSmoothnessIndicator
<
ArgumentFunctionType
>
()
:
nullptr
),
counter_
(
0
)
{
...
...
@@ -427,9 +427,9 @@ namespace Fem
//! get tolerance for shock detector
double
getIndicator
(
const
Dune
::
Fem
::
ParameterReader
&
parameter
)
const
{
static
const
std
::
string
indicators
[]
=
{
"none"
,
"jump"
,
"modal"
,
"always"
};
static
const
std
::
string
indicators
[]
=
{
"user"
,
"none"
,
"jump"
,
"modal"
,
"always"
};
std
::
string
key
(
"femdg.limiter.indicator"
);
return
parameter
.
getEnum
(
key
,
indicators
,
1
);
return
parameter
.
getEnum
(
key
,
indicators
,
2
);
}
//! get tolerance for shock detector
...
...
@@ -1569,7 +1569,7 @@ namespace Fem
}
}
// end intersection iterator
if
(
indicator_
==
0
)
if
(
indicator_
==
1
)
return
false
;
// calculate max face volume
...
...
@@ -1596,22 +1596,29 @@ namespace Fem
// multiply h pol ord with circume
const
double
circFactor
=
(
circume
>
0.0
)
?
(
hPowPolOrder
/
(
circume
*
tolFactor_
))
:
0.0
;
if
(
extTroubledCellIndicator_
)
assert
(
indicator_
!=
0
||
extTroubledCellIndicator_
);
if
(
extTroubledCellIndicator_
)
// also true for indicator_=3
{
shockIndicator
=
(
tol_1_
*
(
*
extTroubledCellIndicator_
)(
U
,
uEn
)
);
}
else
if
(
indicator_
==
1
)
else
if
(
indicator_
==
2
)
{
for
(
int
r
=
0
;
r
<
dimRange
;
++
r
)
{
shockIndicator
[
r
]
=
std
::
abs
(
shockIndicator
[
r
])
*
circFactor
*
tol_1_
;
}
}
else
if
(
indicator_
!
=
1
)
else
if
(
indicator_
=
=
4
)
{
// always limit on each cell
shockIndicator
=
2.
;
}
else
{
std
::
cout
<<
"wrong indicator selection
\n
"
;
assert
(
0
);
abort
();
}
for
(
int
r
=
0
;
r
<
dimRange
;
++
r
)
{
...
...
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