Page 1 of 1

How to generate a GSR file

Posted: Sat Jun 01, 2019 2:00 pm
by tohoyn
Dear all

How can I generate a GSR file for tbase3_5 on page

https://docs.abinit.org/tutorial/base3/

Tommi

Re: How to generate a GSR file

Posted: Tue Jun 04, 2019 12:27 pm
by gmatteo
The GSR is a netcdf file that is produced automatically by the code at the end of the ground-state calculation
provided one has compiled Abinit with netcdf support.

The easiest way to activate netcdf support consists in using

./configure --with-trio-flavor="netcdf" [OTHER_OPTIONS]

when configuring the package.

The build system will activate the internal netcdf fallbacks if it cannot find the netcdf libs in "standard" locations.
At the end of the compilation, one should have HAVE_NETCDF in the list of CPP options activated in the build

./src/98_main/abinit -b | grep NETCDF
HAVE_MPI_IO HAVE_MPI_TYPE_CREATE_S... HAVE_NETCDF

Other examples of configuration files based on external netcdf libraries can be found at
https://github.com/abinit/abiconfig/tre ... g/clusters