Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docstrings to the advection tests #274

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pyro/advection/problems/smooth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""Initialize a Gaussian profile (shifted so the minimum value is 1.0). This
is smooth and the limiters should not kick in too much, so this can be used
for testing convergence."""

import numpy

from pyro.util import msg
Expand Down
2 changes: 2 additions & 0 deletions pyro/advection/problems/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""A problem setup for the unit testing."""

DEFAULT_INPUTS = None

PROBLEM_PARAMS = {}
Expand Down
6 changes: 6 additions & 0 deletions pyro/advection/problems/tophat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""Initialize a tophat profile---the value inside a small circular
regions is set to 1.0 and is zero otherwise. This will exercise the
limiters significantly.

"""

from pyro.util import msg

DEFAULT_INPUTS = "inputs.tophat"
Expand Down
6 changes: 6 additions & 0 deletions pyro/advection_nonuniform/problems/slotted.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""A circular profile with a rectangular slot cut out of it. This is
meant to be run with the velocity field that causes it to rotate about
the center, to understand how well we preserve symmetry.

"""

import numpy as np

from pyro.util import msg
Expand Down
2 changes: 2 additions & 0 deletions pyro/advection_nonuniform/problems/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""A test setup used for unit testing."""

DEFAULT_INPUTS = None

PROBLEM_PARAMS = {}
Expand Down