2. Installation¶
Prerequisites
C++ compiler, Boost C++ Libraries: specifically boost_python-mt, boost_system-mt (and boost_unit_test_framework-mt if you want to run the unit tests), LAPACK, NumPy, and SciPy
Download either pBEAM.py-0.1.0.tar.gz or pBEAM.py-0.1.0.zip, and uncompress/unpack it.
Install pBEAM with the following command.
$ python setup.py install
To verify that the installation was successful, run Python from the command line,
$ python
and import the module. If no errors are issued, the installation was successful.
>>> import _pBEAM
pBEAM has a large range of unit tests, but they are only accessible through C++. These tests verify the integrity of the underlying C++ code for development purposes. If you want to run the tests, change the working directory to src/twister/rotorstruc/pBEAM and run
$ make test CXX=g++
where the name of your C++ compiler should be inserted in the place of g++. The script will build the test executable and run all tests. The phrase “No errors detected” signifies that all the tests passed.