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
49e14043
Commit
49e14043
authored
6 months ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[docu][rk] Added clarification where the method came from.
parent
c88f3148
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#73319
passed
6 months ago
Stage: test
Changes
1
Pipelines
11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/dune/femdg/rk.py
+6
-4
6 additions, 4 deletions
python/dune/femdg/rk.py
with
6 additions
and
4 deletions
python/dune/femdg/rk.py
+
6
−
4
View file @
49e14043
...
...
@@ -409,17 +409,19 @@ class Midpoint(ImplSSP2):
# http://www.sspsite.org
# https://arxiv.org/pdf/1605.02429.pdf
# https://openaccess.leidenuniv.nl/bitstream/handle/1887/3295/02.pdf?sequence=7
# https://epubs.siam.org/doi/10.1137/07070485X
# ExplSSP3(4) described in: https://epubs.siam.org/doi/10.1137/07070485X
# Other implicit methods are described in:
# implicit: https://www.sciencedirect.com/science/article/abs/pii/S0168927408000688
class
ExplSSP3
:
#
class
ExplSSP3
:
# 3rd order n^2 stage method (typically n=2 or s=4)
def
__init__
(
self
,
stages
,
op
,
cfl
=
None
,
*
args
,
**
kwargs
):
self
.
op
=
op
self
.
n
=
int
(
sqrt
(
stages
))
self
.
stages
=
self
.
n
*
self
.
n
assert
self
.
stages
==
stages
,
"
doesn
'
t work if sqrt(s) is not integer
"
self
.
r
=
self
.
stages
-
self
.
n
self
.
q2
=
op
.
space
.
function
(
name
=
"
q2
"
)
self
.
tmp
=
self
.
q2
.
copy
(
)
self
.
q2
=
op
.
space
.
function
(
name
=
"
ExplSSP3::
q2
"
)
self
.
tmp
=
op
.
space
.
function
(
name
=
"
ExplSSP3::tmp
"
)
self
.
cfl
=
0.45
*
stages
*
(
1
-
1
/
self
.
n
)
if
cfl
is
None
else
cfl
self
.
dt
=
None
def
c
(
self
,
i
):
...
...
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