Installation
FIRM3D can be installed on different platforms. The installation process involves setting up the required dependencies and building the package.
macOS
All dependencies can be installed inside a conda environment using the provided install bash script located at install/macOS/install_simsopt_osx.sh.
# Clone the repository
git clone <repository-url>
cd firm3d
# Run the installation script
bash install/macOS/install_simsopt_osx.sh
Perlmutter (NERSC)
All dependencies can be installed inside a conda environment using the provided install bash script located at install/perlmutter/install_simsopt_perlmutter.sh.
# Clone the repository
git clone <repository-url>
cd firm3d
# Run the installation script
bash install/perlmutter/install_simsopt_perlmutter.sh
Manual Installation
If you prefer to install manually or need to customize the installation:
Install Dependencies: Ensure you have the following dependencies installed:
Python 3.8+
CMake
C++ compiler (GCC, Clang, or MSVC)
NumPy
SciPy
Matplotlib
Boost libraries
Eigen
xtensor
For detailed dependency versions, see the
requirements.txtandpyproject.tomlfiles in the repository root.Build the Package:
python setup.py build_ext --inplace pip install -e .
Verify Installation:
import simsopt print("FIRM3D installed successfully!")