Python bindings for LMGC90 discrete element solver.
sudo apt update
sudo apt install -y gfortran libopenblas-dev liblapack-dev cmakebrew install gcc
brew install openblasWindows is not currently supported. The package requires Fortran compilers and POSIX-style build tools. OneAPI can offer that.
git clone https://github.com/BlockResearchGroup/compas_lmgc90.git
cd compas_lmgc90
sudo apt-get update
sudo apt-get install -y gfortran cmake libopenblas-dev liblapack-dev
conda remove -n lmgc90 --all -y
conda create -n lmgc90 python=3.12 -y
conda install -n lmgc90 -y -c conda-forge libstdcxx-ng=14
conda activate lmgc90
pip install -r requirements-dev.txt
pip install --no-build-isolation -ve.
python temp/contacts.pyNote: The libstdcxx-ng=14 installation is required because the module is compiled with GCC 13.3+ and needs GLIBCXX_3.4.32.
python temp/dem_of_an_arch.pyMake sure you installed the package with pip install -e . in the correct conda environment. The LMGC90 libraries are bundled during installation.
Install the required libstdc++:
conda install -n lmgc90 -y -c conda-forge libstdcxx-ng=14