Please consult the official CLEASE repository instead.
SWIG (newer than version 3.0)(not anymore!)- GCC (has to support multithreading)
- Python packages listed in requirements.txt
Install all the dependencies on Ubuntu
sudo apt-get update
sudo apt-get install g++Install the python dependencies (at the moment this only works for Python 2)
pip install -r requirements.txtInstall the package
pip install .Run the all tests
python tests/runner.pyExamples of application of the package are listed below
- Ground State of Al-Mg
- Monte Carlo in SGC Ensemble
- Computing Free Energy From MC data
- Free Energies in the SGC ensemble
- Using MC observers to extract information on each MC step
- Missing C++ version of CE updater try to install with
pip install -e .instead.
- Compilation fails During development of this package it has mainly been compiled with GCC, so if compilation fail it can be worth testing
env CC=gcc CXX=g++ pip install -e .note that a GCC version supporting openMP is required.
- Installing with Intel Compilers If installing with Intel compilers prepending some paths before the pip command might help
CC=icc LINKCC=icc LDSHARED="icc -shared" pip install .Any code that is in this repository should have at least one unittest located in the tests folder. The minimum test required is that the code does what it is supposed to do without raising unexpected exceptions. Code producing results that can be verified against some reference values, should also include tests verifying that the code produce the desired result.
At any time ALL tests in the tests folder should pass, meaning that
python tests/runner.pyshould give no errors.