Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psaap3-weno
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Andreas Klöckner
psaap3-weno
Commits
ffe96d2a
Commit
ffe96d2a
authored
5 years ago
by
Timothy A. Smith
Browse files
Options
Downloads
Patches
Plain Diff
add some FIXME notes
parent
685ddd5c
No related branches found
Branches containing commit
No related tags found
1 merge request
!36
WENO interface update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/data_for_test.py
+9
-0
9 additions, 0 deletions
test/data_for_test.py
with
9 additions
and
0 deletions
test/data_for_test.py
+
9
−
0
View file @
ffe96d2a
...
...
@@ -7,6 +7,9 @@ import reference_implementation as ref
# {{{ FluxDataSingle
class
FluxDataSingle
:
# FIXME: can we set some of these constants from ref.gas?
# -- if all nvars references come from there, it's relatively easy to
# introduce a new gas with more (e.g. scalar) variables
nvars
=
5
ndim
=
3
dirs
=
{
"
x
"
:
1
,
"
y
"
:
2
,
"
z
"
:
3
}
...
...
@@ -25,6 +28,10 @@ class FluxDataSingle:
self
.
frozen_jacobian
=
np
.
mean
(
self
.
jacobians
[
2
:
4
],
axis
=
0
)
self
.
combined_frozen_metrics
=
1.0
# FIXME: Move array_from_string stuff outside FluxDataSingle
# -- just pass an array & have external utilities that generate
# Riemann, sine wave, etc. initial conditions
# FIXME: Consider handling row swapping outside as well?
self
.
state_pair
=
self
.
swap_array_rows
(
u
.
transposed_array_from_string
(
states_str
),
self
.
dir_internal
)
self
.
states
=
u
.
expand_to_n
(
self
.
state_pair
,
6
)
...
...
@@ -77,6 +84,7 @@ class FluxDataSingle:
# {{{ FluxDataVector
# FIXME: is there a better way to divide responsibilities with these fixture classes?
class
FluxDataVector
:
nvars
=
5
ndim
=
3
...
...
@@ -103,6 +111,7 @@ class FluxDataVector:
self
.
states
=
self
.
fill_transverse_with_halo
(
u
.
expand_to_n
(
state_pair
,
self
.
nxhalo
))
# FIXME: convert all this stuff to reference implementation
flux_pair
=
self
.
swap_array_rows
(
u
.
transposed_array_from_string
(
fluxes_str
),
self
.
direction
)
self
.
fluxes
=
self
.
fill_transverse_with_halo
(
...
...
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