Skip to content

Commit 1649759

Browse files
authored
add docstrings to the advection tests (#274)
1 parent fc040ed commit 1649759

5 files changed

Lines changed: 20 additions & 0 deletions

File tree

pyro/advection/problems/smooth.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""Initialize a Gaussian profile (shifted so the minimum value is 1.0). This
2+
is smooth and the limiters should not kick in too much, so this can be used
3+
for testing convergence."""
4+
15
import numpy
26

37
from pyro.util import msg

pyro/advection/problems/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""A problem setup for the unit testing."""
2+
13
DEFAULT_INPUTS = None
24

35
PROBLEM_PARAMS = {}

pyro/advection/problems/tophat.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""Initialize a tophat profile---the value inside a small circular
2+
regions is set to 1.0 and is zero otherwise. This will exercise the
3+
limiters significantly.
4+
5+
"""
6+
17
from pyro.util import msg
28

39
DEFAULT_INPUTS = "inputs.tophat"

pyro/advection_nonuniform/problems/slotted.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""A circular profile with a rectangular slot cut out of it. This is
2+
meant to be run with the velocity field that causes it to rotate about
3+
the center, to understand how well we preserve symmetry.
4+
5+
"""
6+
17
import numpy as np
28

39
from pyro.util import msg

pyro/advection_nonuniform/problems/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""A test setup used for unit testing."""
2+
13
DEFAULT_INPUTS = None
24

35
PROBLEM_PARAMS = {}

0 commit comments

Comments
 (0)