import Spheral
command). The Spheral++ distribution includes several
example and test scripts which demonstrate setups for several standard test
cases. The results of one such test (the Sod shock tube) can be found
at
When you build Spheral++ it installs all of its components in the top
directory where you installed the source, including Python. For instance, if
you installed the source in /home/username/Spheral
, then after you
finish building Spheral++ there will be a /home/username/Spheral/bin
directory containing a python
executable. If you built for a parallel
architecture there will also be a pyMPI
executable there which you will
want to use. Once you run one of these executables you can simply issue the
command import Spheral
and all of the components will be available in the
module Spheral
. Exactly how you run the executable will depend on your
architecture (and whether you configured for parallel or serial). Here are some
example invocations assuming you have a python script example.py
which
contains the setup for your problem, and your source was installed in /home/username/Spheral:
/home/username/Spheral/bin/python -i example.py
mpirun -np 4 /home/username/Spheral/bin/pyMPI -i example.py
srun -n 4 -N 2 /home/username/Spheral/bin/pyMPI -i example.py
poe /home/username/Spheral/bin/pyMPI -i example.py -nodes 1 -procs 4