From a7e79e67718b9a55ae69ae804b2d81ed54c87041 Mon Sep 17 00:00:00 2001 From: jmrosinski Date: Sun, 20 Mar 2022 17:38:59 -0600 Subject: [PATCH] o Forgot to put get_f_mpi_in_place where it won't get compiled if no PMPI --- configure.ac | 2 +- fortran/src/Makefile.am | 6 +++--- fortran/tests/Makefile.am | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index f51bf87..cc51806 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ AC_PREREQ([2.59]) # Initialize autoconf. -AC_INIT([GPTL], [8.1.0], [jmrosinski@gmail.com]) +AC_INIT([GPTL], [8.1.1], [jmrosinski@gmail.com]) # Find out about the host we're building on. AC_CANONICAL_HOST diff --git a/fortran/src/Makefile.am b/fortran/src/Makefile.am index 86bdadf..e59e4bf 100644 --- a/fortran/src/Makefile.am +++ b/fortran/src/Makefile.am @@ -16,7 +16,7 @@ lib_LTLIBRARIES = libgptlf.la libgptlf_la_LDFLAGS = -version-info 0:0:0 # These are the source files. -libgptlf_la_SOURCES = gptlf.F90 process_namelist.F90 get_f_mpi_in_place.F90 f_wrappers.c +libgptlf_la_SOURCES = gptlf.F90 process_namelist.F90 f_wrappers.c if HAVE_PAPI libgptlf_la_FCFLAGS += -DHAVE_PAPI @@ -25,7 +25,7 @@ endif if HAVE_LIBMPI libgptlf_la_FCFLAGS += -DHAVE_LIBMPI if ENABLE_PMPI -libgptlf_la_SOURCES += f_wrappers_pmpi.c +libgptlf_la_SOURCES += f_wrappers_pmpi.c get_f_mpi_in_place.F90 endif endif @@ -33,7 +33,7 @@ endif .NOTPARALLEL: # Install these in the include directory. -include_HEADERS = gptl.mod +include_HEADERS = gptl.mod # Remove module files CLEANFILES = *.$(FC_MODEXT) diff --git a/fortran/tests/Makefile.am b/fortran/tests/Makefile.am index aa8f2d9..9016239 100644 --- a/fortran/tests/Makefile.am +++ b/fortran/tests/Makefile.am @@ -25,6 +25,9 @@ endif MODFILE = ${top_builddir}/fortran/src/gptl.$(FC_MODEXT) +# Enforce serial build here or bad things happen due to .mod file issues +.NOTPARALLEL: + # These programs will be built but not installed. noinst_PROGRAMS = overhead handle utrtest @@ -88,7 +91,7 @@ if ENABLE_PMPI check_PROGRAMS += pmpi inplace TESTS += run_par_pmpi_test.sh run_par_inplace_test.sh pmpi_SOURCES = pmpi.F90 ${MODFILE} -inplace_SOURCES = inplace_subs.F90 inplace.F90 inplace_subs.mod ${MODFILE} +inplace_SOURCES = inplace_subs.F90 inplace.F90 ${MODFILE} endif endif