Skip to content

Commit

Permalink
Updated tutorial1
Browse files Browse the repository at this point in the history
  • Loading branch information
shinaoka committed Apr 18, 2017
1 parent 5148fe8 commit 23add2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
17 changes: 11 additions & 6 deletions tutorials/tutorial1/input.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ n_tau_hyb=1000
[update]
swap_vector="1 0 3 2 5 4 1 2 3 4 5 0"

# We measure the coefficients of the Green's function directly (from l=0 to n_legendre-1).
# At the end of the simulation, we transform the data to G(tau) and G(iomega_n).
# The parameters measurement.G1.n_tau and measurement.G1.n_matsubara only affect this postprocess.
[measurement.G1]
n_legendre=50
n_tau=1000
n_matsubara=500

[measurement.two_time_G2]
on=1
n_legendre=50

[measurement.equal_time_G2]
on=1
# If you measure many observables in a single simulation, thermalization may take very long.
# Do not use the following options unless you understand the behavior of the worm sampling very well.
# [measurement.two_time_G2]
# on=1
# n_legendre=50
#
# [measurement.equal_time_G2]
# on=1
6 changes: 5 additions & 1 deletion tutorials/tutorial1/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def load_g(path):

r["Sign"] = h5['/simulation/results/Sign/mean/value'].value

r["Sign_count"] = h5['/simulation/results/Sign/count'].value

#r["Equal_time_G1"] = h5['/EQUAL_TIME_G1'].value[:,:,0] + 1J*h5['/EQUAL_TIME_G1'].value[:,:,1]

return r
Expand Down Expand Up @@ -74,6 +76,8 @@ def load_g(path):
gomega_l = result_list[i]["Gomega"]
#equal_time_G1 = result_list[i]["Equal_time_G1"]

print "The number of measurements is ", result_list[i]["Sign_count"]

print "sign=",sign
#occ = 0.0
#for i_f in range(nf):
Expand All @@ -98,5 +102,5 @@ def load_g(path):
plt.legend(loc='best',shadow=True,frameon=False,prop={'size' : 12})

plt.tight_layout()
plt.savefig("GF.pdf")
plt.savefig("GF.eps")
plt.close(1)

0 comments on commit 23add2d

Please sign in to comment.