Installing on Rocky Linux or Ubuntu

You can use the provided Dockerfiles for a streamlined installation:

  • Dockerfile – optimized for Rocky Linux
  • Dockerfile_ubuntu – optimized for Ubuntu

Manual Build on Linux

To manually compile the code on Linux, set the recommended compiler flags:

export CXXFLAGS="-O3 -mtune=native -march=native"
export CFLAGS="-O3 -mtune=native -march=native"
export FCFLAGS="-O3 -mtune=native -march=native"

Make sure all dependencies (mumps, lis, p4est, bim++) are compiled with the same compiler and flags to avoid incompatibility or runtime errors.


✅ You’re now ready to run simulations with NextGenPB!

Go to running section to learn out to run the solver.