UK-FVCOM-Usergroup / uk-fvcom

15 stars 11 forks source link

Invalid OMP directive encountered when compiling FVCOM using mpiifort #12

Open jimc101 opened 2 years ago

jimc101 commented 2 years ago

When compiling FVCOM using recent releases of mpiifort, we have encountered the error:

swmod2.f90(115): error #7844: Invalid directive. !$OMP& KM_WAM, KM01, SIGM_10, SIGM01) ^ compilation aborted for swmod2.f90 (code 1) make: *** [makefile:43: swmod2.o] Error 1

The problem seems to relate to this issue, and can be fixed by adding the compiler flag “-qno-openmp-simd” to the make include OPT variable. Is this the right fix?