FFLAGS_prof = -pg -no-pie fix generation of the gmon.outVladimir_Konjkov wrote: Yes, I also wanted to improve significantly your inelegant code, and compiled profiling version that gave me 'empty' gmon.out.
Also mpif90 is the deprecated OpenMPI wrapper in favor of mpifort.