Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FerFlow.jl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fernando Pérez Panadero
FerFlow.jl
Commits
bd1d44b4
Commit
bd1d44b4
authored
May 06, 2024
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Eoft. Fixed typo
parent
e87e5356
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
src/io.jl
src/io.jl
+1
-0
src/mc.jl
src/mc.jl
+1
-1
src/meas.jl
src/meas.jl
+6
-0
src/utils.jl
src/utils.jl
+8
-2
No files found.
src/io.jl
View file @
bd1d44b4
...
...
@@ -144,6 +144,7 @@ function save_data()
BDIO_write!
(
fb
,[
phat_t
[
noi
,
fl
]])
end
end
BDIO_write!
(
fb
,
Eoft
)
BDIO_write_hash!
(
fb
)
...
...
src/mc.jl
View file @
bd1d44b4
...
...
@@ -33,7 +33,7 @@ function Gauge_update()
global
MCid
=
MCid
+
1
println
(
log_file
,
"Updated to Gauge configuration n"
*
string
(
MCid
))
println
(
log_file
,
"dH = "
,
dH
)
println
(
log_file
,
"acc = "
,
Nmc_acc
/
(
params
[
"HMC"
][
"dmeas"
]
*
M
c
id
))
println
(
log_file
,
"acc = "
,
Nmc_acc
/
(
params
[
"HMC"
][
"dmeas"
]
*
M
C
id
))
println
(
log_file
,
"Plaq = "
,
plaquette
(
U
,
lp
,
gp
,
ymws
))
println
(
log_file
,
"Qtop = "
,
Qtop
(
U
,
gp
,
lp
,
ymws
))
...
...
src/meas.jl
View file @
bd1d44b4
...
...
@@ -21,6 +21,8 @@ function load_fields()
global
pp_corr_t
=
fill
(
zero
(
Float64
),(
lp
.
iL
[
4
],
N_noise
,
length
(
flow_times
)));
global
ap_corr_t
=
fill
(
zero
(
ComplexF64
),(
lp
.
iL
[
4
],
N_noise
,
length
(
flow_times
)));
global
Eoft
=
Array
{
Complex
{
Float64
}}(
undef
,
1
+
length
(
flow_times
));
global
phat_t
=
Array
{
Float64
}(
undef
,
N_noise
,
length
(
flow_times
));
global
Quark_cond
=
Array
{
Complex
{
Float64
}}(
undef
,
N_noise
,
length
(
flow_times
));
global
Quark_cond_cfl
=
Array
{
Complex
{
Float64
}}(
undef
,
N_noise
,
length
(
flow_times
));
...
...
@@ -44,6 +46,8 @@ function two_pt()
pp_density
.=
Array
(
norm2
.
(
psi
))
ap_density
.=
Array
(
dot
.
(
psi
,
dmul
.
(
Gamma
{
4
},
psi
)))
noi
==
1
?
Eoft
[
1
]
=
Eoft_plaq
(
U
,
gp
,
lp
,
ymws
)
:
nothing
pp_corr_t0
[
:
,
noi
]
.=
zero
(
Float64
)
ap_corr_t0
[
:
,
noi
]
.=
zero
(
ComplexF64
)
for
t
in
1
:
lp
.
iL
[
4
]
...
...
@@ -61,6 +65,8 @@ function two_pt()
_
,
epslist
=
flw_adapt
(
U
,
psi
,
int
,
delta_t
,
neps
,
gp
,
dpar
,
lp
,
ymws
,
dws
)
neps
=
epslist
[
end
]
noi
==
1
?
Eoft
[
fl
+
1
]
=
Eoft_plaq
(
U
,
gp
,
lp
,
ymws
)
:
nothing
pp_density
.=
Array
(
norm2
.
(
psi
))
ap_density
.=
Array
(
dot
.
(
psi
,
dmul
.
(
Gamma
{
4
},
psi
)))
pp_corr_t
[
:
,
noi
,
fl
]
.=
zero
(
Float64
)
...
...
src/utils.jl
View file @
bd1d44b4
...
...
@@ -40,6 +40,7 @@ function read_ff(name::String)
Sigma
=
Array
{
ComplexF64
}(
undef
,
1
,
N_noise
,
nflow
);
Phat_t
=
Array
{
Float64
}(
undef
,
1
,
N_noise
,
nflow
);
Sigma_cfl
=
Array
{
ComplexF64
}(
undef
,
1
,
N_noise
,
nflow
);
Eoft
=
Array
{
Complex
{
Float64
}}(
undef
,
1
+
nflow
);
pp_corr_mc
=
Array
{
Float64
}(
undef
,
0
,
iL
[
4
],
N_noise
);
ap_corr_mc
=
Array
{
ComplexF64
}(
undef
,
0
,
iL
[
4
],
N_noise
);
...
...
@@ -48,6 +49,7 @@ function read_ff(name::String)
Sigma_mc
=
Array
{
ComplexF64
}(
undef
,
0
,
N_noise
,
nflow
);
Phat_t_mc
=
Array
{
Float64
}(
undef
,
0
,
N_noise
,
nflow
);
Sigma_cfl_mc
=
Array
{
ComplexF64
}(
undef
,
0
,
N_noise
,
nflow
);
Eoft_mc
=
Array
{
Complex
{
Float64
}}(
undef
,
0
,
1
+
nflow
);
while
BDIO_get_uinfo
(
file
)
!=
8
BDIO_seek!
(
file
)
...
...
@@ -77,6 +79,8 @@ function read_ff(name::String)
Phat_t
[
1
,
noi
,
fl
]
=
RN
[
1
]
end
end
BDIO_read
(
file
,
Eoft
)
Eoft_mc
=
[
Eoft_mc
;
Eoft
]
pp_corr_mc
=
[
pp_corr_mc
;
pp_corr
]
ap_corr_mc
=
[
ap_corr_mc
;
ap_corr
]
...
...
@@ -92,7 +96,7 @@ function read_ff(name::String)
BDIO_close!
(
file
)
return
pp_corr_mc
,
ap_corr_mc
,
pp_corr_t_mc
,
ap_corr_t_mc
,
Sigma_mc
,
Sigma_cfl_mc
,
Phat_t_mc
return
Eoft_mc
,
pp_corr_mc
,
ap_corr_mc
,
pp_corr_t_mc
,
ap_corr_t_mc
,
Sigma_mc
,
Sigma_cfl_mc
,
Phat_t_mc
end
...
...
@@ -103,13 +107,15 @@ Loads in the variables 'pp_corr','ap_corr','pp_corr_t','ap_corr_t' and 'Sigma' t
'uwreal' quantities. The indices are, when corresponding, eucliden time and flow times
"""
function
uwff
(
file
::
String
)
pp_corr_mc
,
ap_corr_mc
,
pp_corr_t_mc
,
ap_corr_t_mc
,
Sigma_mc
,
Phat_t_mc
=
read_ff
(
file
)
Eoft_mc
,
pp_corr_mc
,
ap_corr_mc
,
pp_corr_t_mc
,
ap_corr_t_mc
,
Sigma_mc
,
Phat_t_mc
=
read_ff
(
file
)
runame
=
String
(
split
(
split
(
file
,
"/"
)[
end
],
"."
)[
1
])
T
=
size
(
pp_corr_mc
)[
2
]
Ns
=
size
(
pp_corr_mc
)[
3
]
Nfl
=
size
(
pp_corr_t_mc
)[
4
]
global
Eoft
=
[
uwreal
(
real
.
(
Eoft_mc
[
:
,
i
]),
runame
)
for
i
in
1
:
T
+
1
]
global
pp_corr
=
[
uwreal
(
sum
(
pp_corr_mc
,
dims
=
3
)[
:
,
i
,
1
]
./
Ns
,
runame
)
for
i
in
1
:
T
]
global
ap_corr
=
[
uwreal
(
real
.
(
sum
(
ap_corr_mc
,
dims
=
3
)[
:
,
i
,
1
]
./
Ns
),
runame
)
for
i
in
1
:
T
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment