Since ADIOS2 is used, I will let OpenFOAM’s installer build it from its Third-party software tarball.
Changes made to configuration files
Change/set the following in OpenFOAM-v2006/etc/bashrc
# Do a 32 bit double build otherwise libscotch will fail with domain decomposition. Only supported with 32 bit.
Update the choice of MPI library in bashrc:
Now update dependency libraries:
Change in file: scotch
Change in file: metis
Change in file: hypre
Change in file: petsc
Change in file: CGAL
Change in file: FFTW
Change in file: cmake
Change in file: ThirdParty-v2006/makeAdios2 [Lines: 155,156]
wmake general rules for linux64Cray needs updating
Following modifications to wmake/rules/General/mplibMPICH and wmake/rules/linux64Cray/mplibCRAY-MPICH got rid of the erroneous inclusion of -lmpi to the link line.
Change mpirun to srun in discovery of mpirun path in the file OpenFOAM-v2006/wmake/scripts/list_tools
Setup environment for compilation
In case a clean re-build is needed, the following can be run before Allwmake