Install dependencies on MacOS

  1. Install HomeBrew

  2. Install Smilei dependencies:

    brew install python numpy hdf5-mpi
    
  3. Install python packages needed for the happi python module:

    pip3 install ipython h5py pint sphinx matplotlib scipy
    
  4. 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)
    
  5. In a new terminal window, you can now compile smilei (see Compile Smilei for other options)