Skip to main content

Getting Started (MacOS)

Installation

Step 1 (download easifem cli)

python3 -m pip install easifem

Step 2 (setting easifem env vars)

easifem setenv -i ~/.easifem/install -b ~/.easifem/build -s ~/.easifem/src

You can learn more about these environment variables at here. Now, you need to modify the shell file by adding following lines.

for bash or zsh shell
# add to ~/.bashrc or ~/.zshrc
source ~/.config/easifem/easifemvar.sh
for fish shell
# add to ~/.config/fish/config.fish
source ~/.config/easifem/easifemvar.fish

Now activate these chages by reloading the .bashrc, .zshrc, or config.fish.

  • Bash
source ~/.bashrc
  • Zsh
source ~/.zshrc
  • Fish
source ~/.config/fish/config.fish

Step 3 (install system dependencies)

brew install gcc gfortran libomp curl git python3 cmake ninja lapack openblas hdf5 plplot gnuplot doxygen gtk4
"Clang vs GCC"

If you are using Clang compiler then make sure to set LDFLAGS and CPPFLAGS as follows (otherwise, openmp cannot be used)

Fish shell

set -gx LDFLAGS "-L/opt/homebrew/opt/libomp/lib"
set -gx CPPFLAGS "-I/opt/homebrew/opt/libomp/include"

Bash or Zsh shell

export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"

Step 4 (install extpkgs)

easifem install extpkgs

Step 5 (install easifem)