Closed edwardsmith999 closed 2 years ago
Appears with gcc v11 but not with gcc v10, when the OpenFOAM module is loaded on ARCHER2. Loading gcc v11 directly seems to work as expected so not a bug in CPL library.
Actually, if one unloads the OF module, which switched many modules including gcc v11 to v10, and then switch gcc v10 back to v11, it works. This reinforces my idea that the OF module is a little tricky and needs attention. I took an action at our last meeting to clear up the OF module. I suggest we stick with gcc v10 for now, nonetheless.
It does seem to be a common problem with GCC 10.2, e.g. see here: https://github.com/merzlab/QUICK/issues/54 They link to a solution which suggests using the mpi_f08 module instead, e.g. https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report/node408.htm#Node408 Happy to do this, I assume in 2022 that pre 2008 versions of Fortran/MPI are not going to be too common
When compiling the minimal examples with gcc on ARCHER2, the following error is raised