Workaround for issue #41

This commit is contained in:
Manuel Zingl 2015-07-14 09:26:04 +02:00
parent 8ecadc1167
commit ea7d0b1e81
3 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ class SumkDFT:
subgroup_present = 0
if mpi.is_master_node():
ar = HDFArchive(self.hdf_file,'r')
ar = HDFArchive(self.hdf_file,'a')
if subgrp in ar:
subgroup_present = True
# first read the necessary things:
@ -227,7 +227,7 @@ class SumkDFT:
"""
if not (mpi.is_master_node()): return # do nothing on nodes
ar = HDFArchive(self.hdf_file,'r')
ar = HDFArchive(self.hdf_file,'a')
if not subgrp in ar: mpi.report("Loading %s failed!"%subgrp)
list_to_return = []
for it in things_to_load:

View File

@ -598,7 +598,7 @@ class SumkDFTTools(SumkDFT):
# Check if wien converter was called and read transport subgroup form hdf file
if mpi.is_master_node():
ar = HDFArchive(self.hdf_file, 'r')
ar = HDFArchive(self.hdf_file, 'a')
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
self.read_transport_input_from_hdf()

View File

@ -53,7 +53,7 @@ class Symmetry:
if mpi.is_master_node():
#Read the stuff on master:
ar = HDFArchive(hdf_file,'r')
ar = HDFArchive(hdf_file,'a')
if subgroup is None:
ar2 = ar
else: