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
2f221756
Commit
2f221756
authored
6 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes
parent
b9336314
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Latest features added to dune-fem-dg.
Pipeline
#12495
failed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pydemo/shallowWater/main.py
+9
-2
9 additions, 2 deletions
pydemo/shallowWater/main.py
python/dune/femdg/testing.py
+5
-5
5 additions, 5 deletions
python/dune/femdg/testing.py
with
14 additions
and
7 deletions
pydemo/shallowWater/main.py
+
9
−
2
View file @
2f221756
...
...
@@ -7,7 +7,14 @@ parameter.append({"fem.verboserank": -1})
parameter
.
append
(
"
parameter
"
)
primitive
=
lambda
Model
,
uh
:
{
"
freesurface
"
:
Model
.
toPrim
(
uh
)[
0
]}
parameters
=
{
"
fem.ode.odesolver
"
:
"
EX
"
,
"
fem.timeprovider.factor
"
:
0.45
/
2.
,
"
dgadvectionflux.method
"
:
"
LLF
"
,
"
femdg.limiter.limiteps
"
:
1
,
"
femdg.limiter.admissiblefunctions
"
:
1
,
"
femdg.limiter.tolerance
"
:
1
}
run
(
*
problem
(
1
),
startLevel
=
0
,
polOrder
=
2
,
limiter
=
"
default
"
,
primitive
=
primitive
,
saveStep
=
0.1
,
subsamp
=
0
)
primitive
=
primitive
,
saveStep
=
0.1
,
subsamp
=
0
,
dt
=
None
,
threading
=
True
,
grid
=
"
alucube
"
,
parameters
=
parameters
)
This diff is collapsed.
Click to expand it.
python/dune/femdg/testing.py
+
5
−
5
View file @
2f221756
...
...
@@ -86,12 +86,12 @@ def run(Model, initial, x0,x1,N, endTime, name, exact,
except
:
pass
vtk
.
write
(
name
,
count
,
outputType
=
OutputType
.
appendedraw
)
else
:
if
exact
is
not
None
:
grid
.
writeVTK
(
name
,
subsampling
=
subsamp
,
celldata
=
[
u_h
,
exact
(
t
)])
else
:
grid
.
writeVTK
(
name
,
subsampling
=
subsamp
,
celldata
=
[
u_h
])
# output the final result and compute error (if exact is available)
if
exact
is
not
None
:
grid
.
writeVTK
(
name
,
subsampling
=
subsamp
,
celldata
=
{
"
solution
"
:
u_h
,
"
exact
"
:
exact
(
t
)})
error
=
integrate
(
grid
,
dot
(
u_h
-
exact
(
t
),
u_h
-
exact
(
t
)),
order
=
5
)
print
(
"
error:
"
,
math
.
sqrt
(
error
),
flush
=
True
)
else
:
grid
.
writeVTK
(
name
,
subsampling
=
subsamp
,
celldata
=
[
u_h
])
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