-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ae8064
commit 7f0180b
Showing
12 changed files
with
137 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "Gaugefields" | ||
uuid = "a461e10c-0d91-493e-bc41-027b226eee91" | ||
authors = ["Akio Tomiya, Yuki Nagai <[email protected]> and contributors"] | ||
version = "0.4.2" | ||
version = "0.4.3" | ||
|
||
[deps] | ||
CLIME_jll = "3c6ae550-c37b-5556-a07e-d40b4910cf1c" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
testbin.dat ildg-binary-data |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Gaugefields | ||
|
||
function main() | ||
NX = 4 | ||
NY = 4 | ||
NZ = 4 | ||
NT = 4 | ||
NC = 3 | ||
Nwing = 1 | ||
Dim = 4 | ||
|
||
U = Initialize_Gaugefields(NC, Nwing, NX, NY, NZ, NT, condition="cold") | ||
filename = "hoge.ildg" | ||
save_binarydata(U, filename; tempfile1="temp1.dat", tempfile2="temp2.dat") | ||
|
||
|
||
filename = "hoge.ildg" | ||
ildg = ILDG(filename) | ||
i = 1 | ||
L = [NX, NY, NZ, NT] | ||
load_gaugefield!(U, i, ildg, L, NC) | ||
|
||
temp1 = similar(U[1]) | ||
temp2 = similar(U[1]) | ||
|
||
comb = 6 | ||
factor = 1 / (comb * U[1].NV * U[1].NC) | ||
@time plaq_t = calculate_Plaquette(U, temp1, temp2) * factor | ||
println("plaq_t = $plaq_t") | ||
poly = calculate_Polyakov_loop(U, temp1, temp2) | ||
println("polyakov loop = $(real(poly)) $(imag(poly))") | ||
end | ||
main() |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
temp1.dat ildg-binary-data |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
|
||
using Gaugefields | ||
using Random | ||
|
||
import Gaugefields.Temporalfields_module: Temporalfields, get_temp, unused! | ||
|
||
function heatbathtest_bare() | ||
Nwing = 0 | ||
nc = 3 | ||
L = [8, 8, 8, 8] | ||
U = Initialize_Gaugefields(nc, Nwing, L..., condition="cold") | ||
nsteps = 10 | ||
β = 6.0 | ||
numOR = 4 | ||
temp = Temporalfields(U[1]; num=5) | ||
t_tot = 0.0 | ||
|
||
volume = prod(L) | ||
dim = length(L) | ||
factor = 1 / (binomial(dim, 2) * nc * volume) | ||
measure_every = 10 | ||
|
||
for istep = 1:nsteps | ||
|
||
println("# istep = $istep") | ||
|
||
t = @timed begin | ||
|
||
heatbath!(U, temp, β) | ||
unused!(temp) | ||
|
||
for _ = 1:numOR | ||
|
||
overrelaxation!(U, temp, β) | ||
unused!(temp) | ||
|
||
end | ||
|
||
end | ||
t_tot += t.time | ||
|
||
println("Update: Elapsed time $(t.time) [s]") | ||
|
||
plaq = calculate_Plaquette(U, temp[1], temp[2]) * factor | ||
unused!(temp) | ||
println("$istep $plaq # plaq") | ||
|
||
if istep % measure_every == 0 | ||
|
||
poly = calculate_Polyakov_loop(U, temp[1], temp[2]) | ||
unused!(temp) | ||
println("$istep $(real(poly)) $(imag(poly)) # poly") | ||
|
||
end | ||
|
||
end | ||
|
||
println("Total elapsed time $t_tot [s]") | ||
println(log_out, "Total elapsed time $t_tot [s]") | ||
|
||
end | ||
|
||
@test heatbathtest_bare() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters