From 2da097991efb31d45c1fcb6c87daaaff3448ba50 Mon Sep 17 00:00:00 2001 From: tayral Date: Tue, 18 Feb 2014 16:02:06 +0000 Subject: [PATCH] Made test gf_notail clearer. --- test/triqs/gfs/gf_notail.cpp | 6 ++- test/triqs/gfs/gf_notail.output | 42 ++++++++++++++++--- .../gf_positive_and_negative_matsubara.output | 2 - test/triqs/gfs/gfv2.output | 3 +- test/triqs/gfs/test_fit_tail.output | 2 +- 5 files changed, 43 insertions(+), 12 deletions(-) diff --git a/test/triqs/gfs/gf_notail.cpp b/test/triqs/gfs/gf_notail.cpp index dee1f181..d1480890 100644 --- a/test/triqs/gfs/gf_notail.cpp +++ b/test/triqs/gfs/gf_notail.cpp @@ -43,11 +43,13 @@ int main() { TEST(Gt(-.1));//should be equal to line above //fourier - triqs::gfs::local::tail t(1,1); gw_n (tau_) << 1/(tau_-1.); auto gt_with_full_tail = make_gf_from_inverse_fourier(make_gf_from_g_and_tail(gw_n, gw.singularity())); - auto gt_tail_with_one_term = make_gf_from_inverse_fourier(make_gf_from_g_and_tail(gw_n, t)); TEST(gt_with_full_tail(.5)); + triqs::gfs::local::tail t(2,2); + t(1)=1; + TEST(t); + auto gt_tail_with_one_term = make_gf_from_inverse_fourier(make_gf_from_g_and_tail(gw_n, t)); TEST(gt_tail_with_one_term(.5)); } TRIQS_CATCH_AND_ABORT; diff --git a/test/triqs/gfs/gf_notail.output b/test/triqs/gfs/gf_notail.output index f5954d5b..365a792f 100644 --- a/test/triqs/gfs/gf_notail.output +++ b/test/triqs/gfs/gf_notail.output @@ -12,9 +12,41 @@ [[-0.443038,0] [0,-0.443038]])) -(gt_tail_with_one_term(.5)) ---> ((0.5 * -[[-0.44347,0] - [0,-0.44347]]) + (0.5 * -[[-0.443038,0] - [0,-0.443038]])) +(t) ---> tail/tail_view: min/smallest/max = -1 1 8 + ... Order -1 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 0 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 1 = +[[(1,0),(0,0)] + [(0,0),(1,0)]] + ... Order 2 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 3 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 4 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 5 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 6 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 7 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + ... Order 8 = +[[(0,0),(0,0)] + [(0,0),(0,0)]] + +(gt_tail_with_one_term(.5)) ---> ((0.5 * +[[-0.443626,0] + [0,-0.443626]]) + (0.5 * +[[-0.443193,0] + [0,-0.443193]])) diff --git a/test/triqs/gfs/gf_positive_and_negative_matsubara.output b/test/triqs/gfs/gf_positive_and_negative_matsubara.output index b499cccf..bc544fea 100644 --- a/test/triqs/gfs/gf_positive_and_negative_matsubara.output +++ b/test/triqs/gfs/gf_positive_and_negative_matsubara.output @@ -2,8 +2,6 @@ (G_pos_only.mesh().positive_only()) ---> 1 -0 -1 (n) ---> 0.908877 (n_pos_only) ---> 0.908877 diff --git a/test/triqs/gfs/gfv2.output b/test/triqs/gfs/gfv2.output index 61f328ec..87cf2f69 100644 --- a/test/triqs/gfs/gfv2.output +++ b/test/triqs/gfs/gfv2.output @@ -157,8 +157,7 @@ [(0,0),(0.151719,-0.207234)]] ----------------- 4 -------------------- -(density(G3)) ---> 1 - +(density(G3)) ---> [[1.81775,0] [0,1.81775]] diff --git a/test/triqs/gfs/test_fit_tail.output b/test/triqs/gfs/test_fit_tail.output index 3d5225f7..15b38302 100644 --- a/test/triqs/gfs/test_fit_tail.output +++ b/test/triqs/gfs/test_fit_tail.output @@ -66,7 +66,7 @@ ... Order 2 = [[(1,0)]] ... Order 3 = -[[(0.999251,0)]] +[[(0.999288,0)]] ... Order 4 = [[(0.998655,0)]]