Setting up pyro¶
You can clone pyro from github: http://github.com/zingale/pyro2
It is strongly recommended that you use python 3.x. While python 2.x might still work, we do not test pyro under python 2, so it may break at any time in the future.
The following python packages are required:
f2py(part of NumPy)
pytest(for unit tests)
Additionally, you will need
gfortran installed on your computer, for
f2py to be able to compile the code.
The following steps are needed before running pyro:
PYTHONPATHenvironment variable. For the bash shell, this is done as:
- build the Fortran modules, by running the
mk.shscript. It should be sufficient to just do:
- define the environment variable
PYRO_HOMEto point to the
pyro2/directory (only needed for regression testing)
Run the advection solver to quickly test if things are setup correctly:
./pyro.py advection smooth inputs.smooth
You should see a plot window pop up with a smooth pulse advecting diagonally through the periodic domain.