Install dependencies on MacOS¶
Install HomeBrew
Install Smilei dependencies:
brew install python numpy hdf5-mpi
Install python packages needed for the
happi
python module:pip3 install ipython h5py pint sphinx matplotlib scipy
Add the following lines to
~/.bash_profile
(or~/.zprofile
of you’re using zsh) :export OMPI_CXX=g++-14 export HDF5_ROOT_DIR=$(brew --prefix hdf5-mpi)
In a new terminal window, you can now compile smilei (see Compile Smilei for other options)