From 910dc01b354b2b119dfd83b7302e19e92f878378 Mon Sep 17 00:00:00 2001 From: James Foucar Date: Thu, 4 May 2017 13:35:25 -0600 Subject: [PATCH] Use nf-config instead of nc-config to get fortran netcdf libs More robust way to do it. [BFB] --- config/acme/machines/config_compilers.xml | 24 +++++++++++------------ config/acme/machines/config_machines.xml | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/config/acme/machines/config_compilers.xml b/config/acme/machines/config_compilers.xml index 9c9c205be12..b210d4dfd75 100644 --- a/config/acme/machines/config_compilers.xml +++ b/config/acme/machines/config_compilers.xml @@ -521,7 +521,7 @@ for mct, etc. USERDEFINED_MUST_EDIT_THIS - # USERDEFINED $(shell $(NETCDF_PATH)/bin/nc-config --flibs) + # USERDEFINED $(shell $(NETCDF_PATH)/bin/nf-config --flibs) @@ -628,7 +628,7 @@ for mct, etc. $(NETCDF_PATH) $(PNETCDF_PATH) - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) @@ -728,7 +728,7 @@ for mct, etc. /usr/local/tools/mvapich2-pgi-1.7/ mpich -DNO_SHR_VMATH -DCNL - $(shell /usr/local/tools/netcdf-pgi-4.1.3/bin/nc-config --flibs) + $(shell /usr/local/tools/netcdf-pgi-4.1.3/bin/nf-config --flibs) -Wl,-rpath /usr/local/tools/netcdf-pgi-4.1.3/lib -llapack -lblas @@ -742,7 +742,7 @@ for mct, etc. mpich -DNO_SHR_VMATH -DCNL -g -traceback -O0 -fpe0 -check all -check noarg_temp_created -ftrapuv - $(shell /usr/local/tools/netcdf-intel-4.1.3/bin/nc-config --flibs) + $(shell /usr/local/tools/netcdf-intel-4.1.3/bin/nf-config --flibs) -llapack -lblas @@ -966,7 +966,7 @@ for mct, etc. mpi mpi mpich - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas -rpath $(NETCDFROOT)/lib gpfs @@ -978,7 +978,7 @@ for mct, etc. /soft/mpich2/1.4.1-intel-13.1 mpi mpich - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas gpfs -mkl=cluster -mkl=cluster @@ -994,7 +994,7 @@ for mct, etc. $(NETCDFROOT) /soft/mvapich2/2.2b_psm/intel-15.0 mpi - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas -Wl,-rpath -Wl,$(NETCDFROOT)/lib -mkl=cluster -mkl=cluster @@ -1011,7 +1011,7 @@ for mct, etc. $(NETCDFROOT) /blues/gpfs/home/software/spack/opt/spack/linux-x86_64/gcc-5.3.0/mvapich2-2.2b-sdh7nhddicl4sh5mgxjyzxtxox3ajqey mpi - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas -DHAVE_NANOTIME -DBIT64 -DHAVE_SLASHPROC -DHAVE_GETTIMEOFDAY gpfs @@ -1021,24 +1021,24 @@ for mct, etc. $(NETCDFROOT) /home/robl/soft/mpich-3.1.4-nag-6.0 mpi - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas gpfs - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas -mkl + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas -mkl -Wl,-rpath -Wl,$(NETCDF_PATH)/lib gpfs - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas -DHAVE_NANOTIME -DBIT64 -DHAVE_SLASHPROC -DHAVE_GETTIMEOFDAY gpfs - $(shell $(NETCDF_PATH)/bin/nc-config --flibs) -llapack -lblas + $(shell $(NETCDF_PATH)/bin/nf-config --flibs) -llapack -lblas -rpath $(NETCDF_PATH)/lib gpfs diff --git a/config/acme/machines/config_machines.xml b/config/acme/machines/config_machines.xml index a35d2868108..57cc47923f1 100644 --- a/config/acme/machines/config_machines.xml +++ b/config/acme/machines/config_machines.xml @@ -1000,8 +1000,8 @@ - `which nc-config | xargs dirname | xargs dirname` - `which pnetcdf_version | xargs dirname | xargs dirname` + $SHELL{which nf-config | xargs dirname | xargs dirname} + $SHELL{which pnetcdf_version | xargs dirname | xargs dirname} 256M