Closed antoine-levitt closed 4 years ago
Hi Antoine,
Yes, Abinit9 has changed the format used to print the build option.
I've pushed a temporary fix in d55d8ec238a32bd2883fd916146cbfd976db51de (see modifications in flowtk.tasks.py) You may want to patch your version of tasks.py with the one found in the develop branch
I haven't yet released a new version of AbiPy on pypi because Abinit9 is a beta-release and I was not expecting users to run AbiPy calculations with Abinit9.
The AbiPy post-processing tools should work both with Abinit8 and Abinit9 because we haven't changed the netcdf format but at the level of the workflows there are some new features implemented in Abinit that we plan to support in AbiPy. All these changes will be gradually integrated when a stable Abinit9 is released.
Hi! Thanks for this, so it's my bad for going with abinit9 - I just picked the first link on the abinit website actually... I'll try with abinit8
OK for some reason I can't get abinit8 to build, so I've tried monkey patching tasks.py (adding those two lines in your commit) and now abipy complains my abinit executable doesn't have netcdf, even though abinit -b answers
=== Connectors / Fallbacks ===
LINALG flavor : netlib+openblas
FFT flavor : fftw3-threads
HDF5 : yes
NetCDF : yes
NetCDF Fortran : yes
LibXC : yes
Wannier90 : no
Can you try the latest version of tasks.py available here ? There should be a check for the presence of "Netcdf Fortran" that should work with Abinit9:
# Parse info.
# flavor options were used in Abinit v8
for line in self.info.splitlines():
if "Version" in line: self.version = line.split()[-1]
if "TRIO flavor" in line:
self.has_netcdf = "netcdf" in line
if "NetCDF Fortran" in line:
self.has_netcdf = yesno2bool(line)
yay, it works! thanks!
I get a parse error in abipy:
I think this is because
and it's failing to parse the "multicore" section.
This is for abinit 9.0.3.