Skip to content

Commit ecb0e48

Browse files
committed
[triqs/dlr] adapt to new dlr mesh default symmetrize=True by explicit =False
1 parent c5c5f62 commit ecb0e48

12 files changed

Lines changed: 13 additions & 13 deletions

c++/triqs_xca/atom_diag_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ namespace triqs_xca::atom_diag {
337337

338338
// Create vector of gf<dlr_imtime>
339339
std::vector<triqs::gfs::gf<triqs::mesh::dlr_imtime>> gf_blocks(H_block_inds.size());
340-
triqs::mesh::dlr_imtime tau_mesh(beta, triqs::mesh::Fermion, Lambda / beta, eps);
340+
triqs::mesh::dlr_imtime tau_mesh(beta, triqs::mesh::Fermion, Lambda / beta, eps, false);
341341
for (int i = 0; i < H_block_inds.size(); ++i) { gf_blocks[i] = triqs::gfs::gf<triqs::mesh::dlr_imtime>(tau_mesh, ap_blocks[i]); }
342342
return {gf_blocks};
343343
}

c++/triqs_xca/block_sparse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ namespace triqs_xca::block_sparse {
693693
auto itops = cppdlr::imtime_ops(Lambda, dlr_rf);
694694

695695
// triqs gf mesh
696-
auto t_mesh = triqs::mesh::dlr_imtime(beta, triqs::mesh::Fermion, Lambda, eps);
696+
auto t_mesh = triqs::mesh::dlr_imtime(beta, triqs::mesh::Fermion, Lambda, eps, false);
697697
// create vector of gf
698698
std::vector<triqs::gfs::gf<triqs::mesh::dlr_imtime>> gf_vec(BDOF.get_num_block_cols());
699699

c++/triqs_xca/block_sparse_backbone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DiagramEvaluator::DiagramEvaluator(double beta, double Lambda, double eps,
2323
nda::array_const_view<dcomplex, 3> hyb_coeffs,
2424
BlockOpSymQuartet &Fq)
2525
:
26-
tau_mesh(triqs::mesh::dlr_imtime(beta, triqs::mesh::Fermion, Lambda / beta, eps)),
26+
tau_mesh(triqs::mesh::dlr_imtime(beta, triqs::mesh::Fermion, Lambda / beta, eps, false)),
2727
itops(tau_mesh.dlr_it()),
2828
dlr_it(itops.get_itnodes()),
2929
Fq(Fq),

c++/triqs_xca/dense_backbone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace triqs_xca::dense {
1717

1818
DenseDiagramEvaluator::DenseDiagramEvaluator(double beta, double eps, imtime_ops &itops, nda::vector_const_view<double> hyb_poles,
1919
nda::array_const_view<dcomplex, 3> hyb_coeffs, DenseFSet &Fset)
20-
: tau_mesh(triqs::mesh::dlr_imtime(beta, triqs::mesh::Fermion, itops.lambda() / beta, eps)),
20+
: tau_mesh(triqs::mesh::dlr_imtime(beta, triqs::mesh::Fermion, itops.lambda() / beta, eps, false)),
2121
beta(beta),
2222
itops(itops),
2323
dlr_it(itops.get_itnodes()),

python/triqs_xca/triqs_solver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def __init__(self, beta, gf_struct, eps, w_max, verbose=True):
6767
self.eps = eps
6868
self.w_max = w_max
6969

70-
self.dmesh = MeshDLR(beta=beta, statistic='Fermion', eps=eps, w_max=w_max)
71-
self.tmesh = MeshDLRImTime(beta=beta, statistic='Fermion', eps=eps, w_max=w_max)
70+
self.dmesh = MeshDLR(beta=beta, statistic='Fermion', eps=eps, w_max=w_max, symmetrize=False)
71+
self.tmesh = MeshDLRImTime(beta=beta, statistic='Fermion', eps=eps, w_max=w_max, symmetrize=False)
7272

7373
self.Delta_tau = BlockGf(mesh=self.tmesh, gf_struct=self.gf_struct)
7474

test/python/block_sparse_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_oca_diagram_cf_block_sparse_and_dense(beta=2.0, verbose=False):
8585

8686
# -- Hybridization function and adapol fit
8787

88-
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps)
88+
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps, symmetrize=False)
8989
Delta_w = Gf(mesh=mesh_w, target_shape=[2]*2)
9090
iwn = np.array([ complex(x) for x in mesh_w ])
9191
Delta_w.data[:] = make_Delta_with_cont_spec_mat(iwn, semicircular, a=a, b=b, r0=r0, eps=eps)[:, :2, :2]

test/python/block_sparse_api_one_fermion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_oca_diagram_cf_block_sparse_and_dense(
139139

140140
print(f'conserved_operators = {conserved_operators}')
141141

142-
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps)
142+
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps, symmetrize=False)
143143
Delta_w = Gf(mesh=mesh_w, target_shape=[1]*2)
144144

145145
Delta_w << inverse(iOmega_n - e1)

test/python/block_sparse_api_two_fermions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_diagrams_cf_block_sparse_and_dense(e1=-1.5, beta=2.0, conserved_operato
6363

6464
from triqs.gf import MeshDLRImFreq
6565

66-
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps)
66+
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps, symmetrize=False)
6767
Delta_w = Gf(mesh=mesh_w, target_shape=[2]*2)
6868
iwn = np.array([ complex(x) for x in mesh_w ])
6969

test/python/block_sparse_bethe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_block_sparse_self_cons(verbose=False):
3030

3131
H = -mu * N_op
3232

33-
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps)
33+
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps, symmetrize=False)
3434
Delta_w = Gf(mesh=mesh_w, target_shape=[1, 1])
3535

3636
Delta_w << 0.5 * inverse(iOmega_n - e1)

test/python/block_sparse_normalization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def solve_slater_condon_bethe_half_filling(
6969
from triqs.gf import SemiCircular
7070
from triqs.gf import MeshDLRImFreq, Gf, make_gf_dlr_imtime, iOmega_n, inverse
7171

72-
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps)
72+
mesh_w = MeshDLRImFreq(beta=beta, statistic='Fermion', w_max=w_max, eps=eps, symmetrize=False)
7373
Delta_w = Gf(mesh=mesh_w, target_shape=[n_orb]*2)
7474

7575
Delta_w << inverse(iOmega_n)

0 commit comments

Comments
 (0)