Note
At the moment, only Unix based systems are supported.
In addition to an MPI implementation (e.g. MPICH or Open MPI), the pyCTQW.MPI module depends on the following components:
After ensuring NumPy and petsc4py are installed (and all PETSc, SLEPc and MPI environment variables are properly set), pyctqw can be installed using pip:
$ pip install pyCTQW
Note
The current development version pyCTQW-dev can also be installed using pip:
$ pip install --allow-unverified pyCTQW pyCTQW==dev
Alternatively, the source code can be downloaded and compiled manually:
Download the latest version of pyctqw, extract the pyCTQW archive, and cd into the extracted directory:
$ wget https://github.com/josh146/pyctqw/archive/1.1.0.tar.gz -O pyctqw-1.1.0.tar.gz $ tar xzvf pyctqw-1.1.0.tar.gz $ cd pyctqw-1.1.0
Ensure that your PETSc and SLEPc environment variables are correctly set; for example,
$ export PETSC_DIR=/path/to/petsc $ export PETSC_ARCH=linux-gnu $ export SLEPC_DIR=/path/to/slepcIf you are unsure what your PETSc or SLEPc variables should be, please refer to their documentation.
Important
If you plan to install pyCTQW.MPI using root to a system directory, the PETSc and SLEPc environment variables must be available to the root user.
Compile the Python module pyCTQW.MPI by running
$ python setup.py build
System-wide install:
$ sudo -E python setup.py install
where the command -E ensures that the environment variables set in step 3 are passed to the root.
Note
If you do not have root access, or the above command does not appear to work, you can install the package locally by running
$ python setup.py install --user
Now, have a go running some of the Examples!
If Sphinx is installed, the documentation can be compiled by running
$ pip install -r docs/requirements.txt
$ make docs