2016-10-12 11:03:18 +08:00
|
|
|
# Settings that the LAMMPS build will import when a package using the
|
|
|
|
# netCDF library is installed. This tries to automate configuration
|
|
|
|
# via the nc-config tool, which is part of the netCDF installation.
|
|
|
|
|
2016-10-19 02:45:06 +08:00
|
|
|
netcdf_SYSINC =
|
|
|
|
netcdf_SYSLIB =
|
2016-10-12 11:03:18 +08:00
|
|
|
netcdf_SYSPATH =
|
|
|
|
|
2016-10-19 03:32:20 +08:00
|
|
|
ifneq ($(shell which nc-config 2>> /dev/null),)
|
2016-10-19 02:45:06 +08:00
|
|
|
netcdf_SYSINC += -DLMP_HAS_NETCDF $(shell nc-config --cflags)
|
|
|
|
netcdf_SYSLIB += $(shell nc-config --libs)
|
2016-10-12 11:03:18 +08:00
|
|
|
endif
|
|
|
|
|
2016-10-19 03:32:20 +08:00
|
|
|
ifneq ($(shell which ncmpidump 2>> /dev/null),)
|
2016-10-19 02:45:06 +08:00
|
|
|
PNETCDF_PATH = ($shell which ncmpidump | sed -e 's,bin/ncmpidump,,')
|
|
|
|
netcdf_SYSINC = -DLMP_HAS_PNETCDF -I$(PNETCDF_PATH)/include
|
2016-10-19 03:05:30 +08:00
|
|
|
netcdf_SYSLIB = -lpnetcdf
|
|
|
|
netcdf_SYSPATH = -L$(PNETCDF_PATH)/lib
|
2016-10-12 11:03:18 +08:00
|
|
|
endif
|