import lammps-netcdf code as USER-NC-DUMP package

This commit is contained in:
Axel Kohlmeyer
2016-10-11 23:03:18 -04:00
parent 0eb7fbf34d
commit ecb03dd2df
8 changed files with 2622 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# 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.
ifeq ($(shell nc-config --has-pnetcdf),no)
netcdf_SYSINC = $(shell nc-config --cflags)
netcdf_SYSLIB = $(shell nc-config --libs)
netcdf_SYSPATH =
endif
ifeq ($(shell nc-config --has-pnetcdf),yes)
netcdf_SYSINC = -DLMP_HAS_PNETCDF $(nc-config --cflags)
netcdf_SYSLIB = $(shell nc-config --libs)
netcdf_SYSPATH =
endif