Skip to content

LLNL/pylibROM

Repository files navigation

pylibROM

Python Interface for LLNL libROM

Installation

  1. Pull repository and all sub-module dependencies:
git clone --recurse-submodules https://github.com/llnl/pylibROM.git
  1. Compile and build pylibROM (from top-level pylibROM repo):
pip install ./

To speed up the build if libROM has been compiled:

pip install ./ --global-option="--librom_dir=/path/to/pre-installed-libROM"

If you want to build static ScaLAPACK for libROM,

pip install ./ --global-option="--install_scalapack"
  1. Test python package (from top-level pylibROM repo):
cd tests
pytest test_pyVector.py

Using PyMFEM

pylibROM is often used together with PyMFEM. Check the repository for detailed instruction for PyMFEM installation. For serial version of PyMFEM, the following simple pip command works:

pip install mfem

For parallel version, a manual installation is required:

git clone https://github.com/mfem/PyMFEM.git
cd PyMFEM
python3 setup.py install --with-parallel --with-gslib

On LC quartz, use --user flag:

python3 setup.py install --with-parallel --with-gslib --user

Make sure swig is installed first. Also, the binary file must be located in PATH environment variable.

License

pylibROM is distributed under the terms of the MIT license. All new contributions must be made under the MIT. See LICENSE-MIT

LLNL Release Nubmer: LLNL-CODE- 852921

Authors

  • Michael Barrow (LLNL)
  • Siu Wun Cheung (LLNL)
  • Youngsoo Choi (LLNL)
  • "Kevin" Seung Whan Chung (LLNL)
  • Pravija Danda (TAMU)
  • Coleman Kendrick (LLNL)
  • Hardeep Sullan (LLNL)
  • Jian Tao (TAMU)
  • Henry Yu (LLNL)