always set FMPI_COMM_F2C in sundials_fconfig.h
If MPI is not enabled, FMPI_COMM_F2C is not set and causes a
compilation error with serial Fortran examples.
@@ -739,6 +739,9 @@ if(MPI_ENABLE)
"Parallel support will not be provided")
endif()
+endif()
+
+# always define FMPI_COMM_F2C in sundials_fconfig.h file
if(MPIC_MPI2)
set(F77_MPI_COMM_F2C "#define SUNDIALS_MPI_COMM_F2C 1")
set(FMPI_COMM_F2C ".true.")
@@ -747,8 +750,6 @@ if(MPI_ENABLE)
set(FMPI_COMM_F2C ".false.")
endif()
-endif()
-
# -------------------------------------------------------------
# Find OpenMP
# -------------------------------------------------------------
