mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 20:34:38 +01:00
fix transport test, allow for parallel execution of tests
This commit is contained in:
parent
66b3719c9b
commit
213016ee1c
@ -862,7 +862,7 @@ class SumkDFTTools(SumkDFT):
|
||||
if ishell is not None:
|
||||
gf_struct_parproj = [
|
||||
(sp, self.shells[ishell]['dim']) for sp in spn]
|
||||
G_loc = BlockGf(name_block_generator=[(block, GfReFreq(target_shape=(block_dim, block_dim), mesh=self.Sigma_imp_w[0].mesh))
|
||||
G_loc = BlockGf(name_block_generator=[(block, GfReFreq(target_shape=(block_dim, block_dim), mesh=self.Sigma_imp[0].mesh))
|
||||
for block, block_dim in gf_struct_parproj], make_copies=False)
|
||||
G_loc.zero()
|
||||
|
||||
@ -1207,7 +1207,7 @@ class SumkDFTTools(SumkDFT):
|
||||
spn = self.spin_block_names[self.corr_shells[icrsh]['SO']]
|
||||
glist = lambda: [GfReFreq(target_shape=(block_dim, block_dim), window=(self.omega[
|
||||
0], self.omega[-1]), n_points=n_om) for block, block_dim in self.gf_struct_sumk[icrsh]]
|
||||
self.Sigma_imp_w[icrsh] = BlockGf(
|
||||
self.Sigma_imp[icrsh] = BlockGf(
|
||||
name_list=spn, block_list=glist(), make_copies=False)
|
||||
for i, g in self.Sigma_imp[icrsh]:
|
||||
for iL in g.indices[0]:
|
||||
|
BIN
test/python/SrVO3_Sigma_transport.h5
Normal file
BIN
test/python/SrVO3_Sigma_transport.h5
Normal file
Binary file not shown.
@ -20,6 +20,7 @@
|
||||
################################################################################
|
||||
|
||||
from numpy import *
|
||||
from h5 import HDFArchive
|
||||
from triqs_dft_tools.converters.wien2k import *
|
||||
from triqs_dft_tools.sumk_dft import *
|
||||
from triqs_dft_tools.sumk_dft_tools import *
|
||||
@ -32,7 +33,7 @@ Converter = Wien2kConverter(filename='SrVO3', repacking=True)
|
||||
Converter.convert_dft_input()
|
||||
Converter.convert_transport_input()
|
||||
|
||||
with HDFArchive('SrVO3_Sigma.h5', 'a') as ar:
|
||||
with HDFArchive('SrVO3_Sigma_transport.h5', 'a') as ar:
|
||||
Sigma = ar['dmft_transp_input']['Sigma_w']
|
||||
SK = SumkDFTTools(hdf_file='SrVO3.ref.h5', mesh=Sigma.mesh, use_dft_blocks=True)
|
||||
SK.set_Sigma([Sigma])
|
||||
|
Loading…
Reference in New Issue
Block a user