3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-20 04:02:20 +02:00

[transp] Check if case.outputs was converted

The wien2kconverter reads case.outputs only if present.
        Thus the transport code has to check if the necessary data
        is in the dft_misc_input subgroup.
This commit is contained in:
Manuel Zingl 2016-04-20 14:22:02 +02:00
parent 058e8e968f
commit 7fe5f0222c

View File

@ -611,6 +611,9 @@ class SumkDFTTools(SumkDFT):
if mpi.is_master_node():
ar = HDFArchive(self.hdf_file, 'r')
if not (self.transp_data in ar): raise IOError, "transport_distribution: No %s subgroup in hdf file found! Call convert_transp_input first." %self.transp_data
# check if outputs file was converted
if not ('n_symmetries' in ar['dft_misc_input']): raise IOError, "transport_distribution: n_symmetries missing. Check if case.outputs file is present and call convert_misc_input() or convert_dft_input()."
self.read_transport_input_from_hdf()
if mpi.is_master_node():