Skip to content

Commit 771daa7

Browse files
authored
add a DEFAULT_INPUTS to each problem setup (#225)
this allows us to run a problem without specifying an inputs file
1 parent ed25543 commit 771daa7

File tree

42 files changed

+86
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+86
-0
lines changed

pyro/advection/problems/smooth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from pyro.mesh import patch
66
from pyro.util import msg
77

8+
DEFAULT_INPUTS = "inputs.smooth"
9+
810

911
def init_data(my_data, rp):
1012
""" initialize the smooth advection problem """

pyro/advection/problems/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from pyro.mesh import patch
44

5+
DEFAULT_INPUTS = None
6+
57

68
def init_data(my_data, rp):
79
""" an init routine for unit testing """

pyro/advection/problems/tophat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from pyro.mesh import patch
44
from pyro.util import msg
55

6+
DEFAULT_INPUTS = "inputs.tophat"
7+
68

79
def init_data(myd, rp):
810
""" initialize the tophat advection problem """

pyro/advection_fv4/problems/smooth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from pyro.mesh import fv
44
from pyro.util import msg
55

6+
DEFAULT_INPUTS = "inputs.smooth"
7+
68

79
def init_data(my_data, rp):
810
""" initialize the smooth advection problem """

pyro/advection_nonuniform/problems/slotted.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from pyro.mesh import patch
44
from pyro.util import msg
55

6+
DEFAULT_INPUTS = "inputs.slotted"
7+
68

79
def init_data(my_data, rp):
810
""" initialize the slotted advection problem """

pyro/advection_nonuniform/problems/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from pyro.mesh import patch
22
from pyro.util import msg
33

4+
DEFAULT_INPUTS = None
5+
46

57
def init_data(my_data, rp):
68
""" an init routine for unit testing """

pyro/burgers/problems/converge.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from pyro.mesh import patch
66
from pyro.util import msg
77

8+
DEFAULT_INPUTS = "inputs.converge.64"
9+
810

911
def init_data(my_data, rp):
1012
""" initialize the smooth burgers convergence problem """

pyro/burgers/problems/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from pyro.mesh import patch
44
from pyro.util import msg
55

6+
DEFAULT_INPUTS = "inputs.test"
7+
68

79
def init_data(myd, rp):
810
""" initialize the burgers test problem """

pyro/burgers/problems/tophat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from pyro.mesh import patch
44
from pyro.util import msg
55

6+
DEFAULT_INPUTS = "inputs.tophat"
7+
68

79
def init_data(myd, rp):
810
""" initialize the tophat burgers problem """

pyro/compressible/problems/acoustic_pulse.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from pyro.mesh import fv
66
from pyro.util import msg
77

8+
DEFAULT_INPUTS = "inputs.acoustic_pulse"
9+
810

911
def init_data(myd, rp):
1012
"""initialize the acoustic_pulse problem. This comes from

0 commit comments

Comments
 (0)