-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
79 lines (68 loc) · 1.46 KB
/
Copy pathconfig.lua
File metadata and controls
79 lines (68 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/lua
serialize = require 'serialize'
local function range (a, b, N)
local i = 0
if N<0 then a, b, N = b, a, -N end
if a==b then i, N = 1, 1 end
return function ()
if i>N then return nil end
local ret = a+i*(b-a)/N
i = i+1
return ret
end
end
local function flip_params (t)
t.U, t.B, t.mu = -t.U, 2.0*t.mu-t.U, 0.5*(t.B-t.U)
return t
end
local function copy (t)
local ret = {}
for k, v in pairs(t) do ret[k] = v end
return ret
end
local tasks = setmetatable({}, { __index=table })
local t = 0.3
local U = 4*t
local tx, ty, tz = t, t, t
local J = 4*t*t/U
local L = 4;
local seed = 33333 -- os.time()
--local _, threads = (os.getenv("LSB_HOSTS") or ''):gsub("(%S+)", "%1")
--if threads<1 then threads = 1 end
--print("using "..threads.." threads")
--tasks.THREADS = 48
local mu_min, mu_max = -2.0*(tx+ty+tz), U/2
--mu_max, mu_min = mu_max - 0.5*t, mu_max - 1.20*t
for y in range(mu_max, mu_max, 30) do
for x in range(0.5, 0.5, -20) do
seed = seed + 127
tasks:insert( flip_params{
Lx = 4,
Ly = 4,
Lz = 1,
T = x*t,
beta = 1.0/x/t,
N = 20/x,
tx = 1.0*tx,
ty = 1.0*ty,
tz = 1.0*tz,
U = U,
mu = y,
B = 0.0,
h = 0.0e-2,
THERMALIZATION = 300,
SWEEPS = 300,
SEED = seed,
OUTPUT = 'sign_',
SLICES = 1,
SVD = 1,
max_update_size = 1,
flips_per_update = 1;
open_boundary = true,
savefile = "save.test",
outfile = "out.test",
type="open";
} )
end
end
return tasks