Dear all,
I have a problem to build abinit with NetCDF.
I am compiling the version 7.8.2.
The configuration works fine and complation seems ok but at running time I have a crash:
--- !ERROR
message: |
Netcdf Error while closing the OUT.nc file: NetCDF: Not a valid ID
src_file: outvars.F90
src_line: 359
...
I compared file outvars.F90 to older 7.3.1 version file and they are different:
some preprocessor directive conscerning HAVE_TRIO_NETCDF HAVE_TRIO_ETSF_IO
(Test and configuration work very well with 7.3.1 version).
There is a problem or I made a wrong configuration?
Thanks.
Best regard,
Marco
NB: I put here my configuration file
# Config file for ABINIT on PC-reseau O
# with G95 compiler
# =====================================
with_mpi_prefix="/opt/open-mpi/1.8.1/intel_14.0/"
enable_mpi="yes"
enable_mpi_io="yes"
disable_all_plugins="yes"
with_trio_flavor="netcdf"
with_netcdf_incs="-I/opt/netcdf/4.3/intel_14/include"
with_netcdf_libs="-L/opt/netcdf/4.3/intel_14/lib -lnetcdff -lnetcdf"
with_linalg_flavor="mkl"
with_linalg_libs="-L/opt/intel/14.0/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm"
with_linalg_incs="-I/opt/intel/14.0/mkl/include/"
with_dft_flavor="none"
enable_gw_dpc="no"
enable_maintainer_checks="no"
Configuring with NetCDF [SOLVED]
Moderators: fgoudreault, mcote
Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Configuring with NetCDF
Marco Mancini
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
Re: Configuring with NetCDF
Hi,
I'm not completely sure why you have this message but I would suggest to recompile abinit with both NetCDF and ETSF_IO.
I am pretty convinced it will fix you problem.
Cheers
Jordan
I'm not completely sure why you have this message but I would suggest to recompile abinit with both NetCDF and ETSF_IO.
I am pretty convinced it will fix you problem.
Cheers
Jordan
Re: Configuring with NetCDF [SOLVED]
NetCDF without ETSF_IO does not currently work in Abinit, due to a developer having left unfinished and untested work in the source code. They always should be used together to guarantee the stability and reliability of file I/O.
In any case, a rewrite will occur in Abinit 8 that will fix this issue once and for all.
In any case, a rewrite will occur in Abinit 8 that will fix this issue once and for all.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Configuring with NetCDF
Hello Jordan and Yann,
thanks a lot for your rapid reply.
Best regards,
Marco
thanks a lot for your rapid reply.
Best regards,
Marco
Marco Mancini
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE
LUTH, Observatoire de Paris
5, place Jules Janssen
92190 MEUDON - FRANCE