Installing and using netcdf files for AbiPy
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.
Installing and using netcdf files for AbiPy
I’m relatively new to ABINIT and I have been learning through the tutorials. However for parts of the tutorial that use netcdf (ie. Base1 Tutorial last part, Base3 Tutorial band width graphs, etc.) I cant seem to access them. Especially when using cut3d, option 15 is supposed to generate a netcdf file of my data, but it always gives me an error saying “bad file descriptor.” What are the steps to installing netcdf programs or configuring my abinit to use/create netcdf files? Also, are netcdf files the same as those ending in “.nc”? Thanks!
Re: Installing and using netcdf files for AbiPy
What are the steps to installing netcdf programs or configuring my abinit to use/create netcdf files?
Use:
Code: Select all
./configure --with-trio-flavor="netcdf" OTHER_OPTIONS
to activate the internal netcdf library.
At the end of the configuration, you should see that the internal netcdf fallback has been activated.
Code: Select all
==============================================================================
=== Final remarks ===
==============================================================================
Summary of important options:
* C compiler : gnu version 8.2
* Fortran compiler: gnu version 8.2
* TRIO flavor = netcdf-fallback
Compile the code with `make -jNUM_CPUS` as usual
Since netcdf support is activated, Abinit will produce automatically netcdf files that can be used for post-processing with AbiPy (e.g. the GSR.nc file).
For further info about the installation process see: https://docs.abinit.org/installation/