Skip to content
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ install:

before_script:
- export PYTHONPATH=$PYTHONPATH:$(pwd)
- export PYRO_HOME=$(pwd)
- ./mk.sh

script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ http://python-hydro.github.io/pyro2/
directory.

* Define the environment variable `PYRO_HOME` to point to the
`pyro2/` directory (only needed to regression testing)
`pyro2/` directory

* Build the Fortran source. In `pyro2/` type

Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The following steps are needed before running pyro:
./mk.sh

* define the environment variable ``PYRO_HOME`` to point to
the ``pyro2/`` directory (only needed for regression testing)
the ``pyro2/`` directory

.. code-block:: none

Expand Down
6 changes: 3 additions & 3 deletions examples/examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,14 @@
" 11 1.00000 0.00000\n",
"\u001b[33moutputting...\u001b[0m\n",
"\u001b[33moutputting...\u001b[0m\n",
"vis: 0.25238776206970215\n",
"main: 0.08136248588562012\n"
"vis: 0.2423102855682373\n",
"main: 0.07352924346923828\n"
]
},
{
"data": {
"text/plain": [
"<advection.simulation.Simulation at 0x7fb6c2488ba8>"
"<advection.simulation.Simulation at 0x7f293ebf2390>"
]
},
"execution_count": 9,
Expand Down
2 changes: 2 additions & 0 deletions pyro.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def __init__(self, solver_name):
if solver_name not in valid_solvers:
msg.fail("ERROR: %s is not a valid solver" % solver_name)

os.chdir(os.environ["PYRO_HOME"])

# import desired solver under "solver" namespace
self.solver = importlib.import_module(solver_name)
self.solver_name = solver_name
Expand Down