Configuring Abinit 8.10 with NetCDF as default [SOLVED]
Posted: Fri Feb 15, 2019 10:38 pm
Hello everyone,
I have been having some trouble using ABINIT with NetCDF in Linux. I am interested in outputting everything in NetCDF format, either by setting the `enable_netcdf_default="yes"` in the configuration stage, or by using `iomode 3` in the input file. This is my configuration file:
I configure with this:
This compiles successfully, but when I run the tests using MPI, I get this error:
This has happened to me on various Linux systems using various compilers and libraries. I have tried to alleviate this problem by compiling NetCDF with parallel capabilities by hand and linking to that, but those attempts have been unsuccessful so far.
Surely there must be a way to launch ABINIT with MPI parallelism, but with sequential writing of the NetCDF files! Any help would be greatly appreciated.
I have been having some trouble using ABINIT with NetCDF in Linux. I am interested in outputting everything in NetCDF format, either by setting the `enable_netcdf_default="yes"` in the configuration stage, or by using `iomode 3` in the input file. This is my configuration file:
Code: Select all
enable_fallbacks="yes"
enable_gw-dpc="yes"
enable_macroave="yes"
enable_mpi="yes"
enable_mpi_io="yes"
enable_openmp="yes"
with_fft_flavor=fftw3
with_fft_incs="-I/usr/include/"
with_fft_libs="-L/usr/lib/x86_64-linux-gnu/ -lfftw3 -lfftw3f"
with_trio_flavor=netcdf
with_netcdf_libs="-L/usr/lib/x86_64-linux-gnu/ -lnetcdf -lnetcdff"
with_netcdf_incs="-I/usr/include/"
enable_netcdf_default="yes"
I configure with this:
Code: Select all
CC=mpicc FC=mpifort CXX=mpicxx ../configure
This compiles successfully, but when I run the tests using MPI, I get this error:
Code: Select all
--netcdf-default is on but netcdf library does not support MPI-IO. Aborting now
This has happened to me on various Linux systems using various compilers and libraries. I have tried to alleviate this problem by compiling NetCDF with parallel capabilities by hand and linking to that, but those attempts have been unsuccessful so far.
Surely there must be a way to launch ABINIT with MPI parallelism, but with sequential writing of the NetCDF files! Any help would be greatly appreciated.