55#include < triqs_xca/block_sparse.hpp>
66#include < triqs_xca/block_sparse_manual.hpp>
77#include < triqs_xca/block_sparse_backbone.hpp>
8- // temporary include
9- #include < triqs_xca/dense_backbone.hpp>
108
119using namespace nda ;
1210using namespace cppdlr ;
@@ -267,10 +265,6 @@ int main() {
267265
268266 auto D = DiagramEvaluator (beta, Lambda, eps, Deltat, nda::make_regular (dlr_rf / beta), Gt, Fq); // create DiagramEvaluator object
269267
270- // temporary dense calculation
271- auto Fset = DenseFSet (Fs_dense, F_dags_dense, hyb_coeffs);
272- auto DD = DenseDiagramEvaluator (beta, itops, Deltat, Deltat, dlr_rf, Gt_dense, Fset);
273-
274268 auto Deltadlr = itops.vals2coefs (Deltat); // obtain dlr coefficient of Delta(t)
275269 nda::vector<double > dlr_rf_reflect = -dlr_rf;
276270 nda::array<dcomplex, 3 > Deltadlr_reflect = Deltadlr * 1.0 ;
@@ -293,12 +287,6 @@ int main() {
293287 third_order_result = BlockDiagOpFun (Sigma_third_gf);
294288 D.reset (); // reset the DiagramEvaluator for the next topology
295289
296- // temp for verification
297- auto BB = Backbone (topologies (i, _, _), n);
298- DD .eval_self_energy (BB );
299- auto dense_result = DD .Sigma ;
300- DD .reset ();
301-
302290 // Compute third-order contribution using old code
303291 nda::array<dcomplex, 3 > TCA_old (r, N, N);
304292 TCA_old = 0 ;
@@ -318,9 +306,6 @@ int main() {
318306
319307 std::cout << " max error in block 0: " << nda::max_element (nda::abs (TCA_old (_, range (0 , 4 ), range (0 , 4 )) - third_order_result.get_block (0 )))
320308 << std::endl;
321- std::cout << " TCA_old block 0:\n " << TCA_old (5 , range (0 , 4 ), range (0 , 4 )) << std::endl;
322- std::cout << " third_order_result block 0:\n " << third_order_result.get_block (0 )(5 , range (0 , 4 ), range (0 , 4 )) << std::endl;
323- std::cout << " dense result block 0:\n " << dense_result (5 , range (0 , 4 ), range (0 , 4 )) << std::endl;
324309 std::cout << " max error in block 1: " << nda::max_element (nda::abs (TCA_old (_, range (4 , 10 ), range (4 , 10 )) - third_order_result.get_block (1 )))
325310 << std::endl;
326311 std::cout << " max error in block 2: " << nda::max_element (nda::abs (TCA_old (_, range (10 , 11 ), range (10 , 11 )) - third_order_result.get_block (2 )))
0 commit comments