Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GEVP automated analysis
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
Alessandro
GEVP automated analysis
Commits
33efe4e2
Commit
33efe4e2
authored
Apr 26, 2021
by
Alessandro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update user option t0 and tau
parent
a30538f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
30 deletions
+7
-30
gevp.jl
gevp.jl
+7
-4
tools.jl
tools.jl
+0
-26
No files found.
gevp.jl
View file @
33efe4e2
...
@@ -7,6 +7,9 @@ const path_plat = "/Users/ale/automation/plat.txt"
...
@@ -7,6 +7,9 @@ const path_plat = "/Users/ale/automation/plat.txt"
const
path_results
=
"/Users/ale/Desktop/results_gevp"
const
path_results
=
"/Users/ale/Desktop/results_gevp"
const
ensembles
=
[
"J303"
,
"N300"
,
"H400"
]
const
ensembles
=
[
"J303"
,
"N300"
,
"H400"
]
const
sector
=
Dict
(
"ll"
=>
false
,
"ls"
=>
false
,
"lh"
=>
true
,
"ss"
=>
false
,
"sh"
=>
true
,
"hh"
=>
true
)
const
sector
=
Dict
(
"ll"
=>
false
,
"ls"
=>
false
,
"lh"
=>
true
,
"ss"
=>
false
,
"sh"
=>
true
,
"hh"
=>
true
)
const
tau
=
4
const
_t0
=
2
const
range_t_fit
=
[
2
,
5
]
const
rwf
=
false
const
rwf
=
false
const
compute_t0
=
false
const
compute_t0
=
false
const
mass_shift
=
false
#not implemented yet
const
mass_shift
=
false
#not implemented yet
...
@@ -43,8 +46,8 @@ println("\n Building matrices \n")
...
@@ -43,8 +46,8 @@ println("\n Building matrices \n")
pp
=
get_corr
(
ens
,
"G5"
,
"G5"
,
rw
=
rwf
)
pp
=
get_corr
(
ens
,
"G5"
,
"G5"
,
rw
=
rwf
)
gen_mulist
[
i
]
=
getfield
.
(
pp
,
:
mu
)
gen_mulist
[
i
]
=
getfield
.
(
pp
,
:
mu
)
a1a1
=
get_corr
(
ens
,
"G1G5"
,
"G1G5"
,
rw
=
rwf
)
a1a1
=
get_corr
(
ens
,
"G1G5"
,
"G1G5"
,
rw
=
rwf
)
matinfo
[
i
]
=
comp_mat
(
ens
,
pp
,
4
)
matinfo
[
i
]
=
comp_mat
(
ens
,
pp
,
tau
)
matinfo_vec
[
i
]
=
comp_mat
(
ens
,
a1a1
,
4
)
matinfo_vec
[
i
]
=
comp_mat
(
ens
,
a1a1
,
tau
)
println
(
"Time:"
)
println
(
"Time:"
)
end
end
end
end
...
@@ -62,8 +65,8 @@ println("\n Computing observables \n")
...
@@ -62,8 +65,8 @@ println("\n Computing observables \n")
@time
begin
@time
begin
ens
=
ensinfo
[
i
]
ens
=
ensinfo
[
i
]
println
(
"
\n
Ensemble: "
,
ens
.
id
)
println
(
"
\n
Ensemble: "
,
ens
.
id
)
en0_ps
=
gevp_mass
(
matinfo
[
i
],
t0
=
2
,
wpm
=
wpmm
)
en0_ps
=
gevp_mass
(
matinfo
[
i
],
t0
=
_t0
,
delta_t_in
=
range_t_fit
,
wpm
=
wpmm
)
en0_vec
=
gevp_mass
(
matinfo_vec
[
i
],
t0
=
2
,
wpm
=
wpmm
)
en0_vec
=
gevp_mass
(
matinfo_vec
[
i
],
t0
=
_t0
,
delta_t_in
=
range_t_fit
,
wpm
=
wpmm
)
println
(
"
\n
ground ps state: "
,
en0_ps
)
println
(
"
\n
ground ps state: "
,
en0_ps
)
println
(
"
\n
ground vec state: "
,
en0_vec
)
println
(
"
\n
ground vec state: "
,
en0_vec
)
ensobs
[
i
]
=
EnsObs
(
ens
,
gen_mulist
[
i
],
en0_ps
,
en0_vec
)
ensobs
[
i
]
=
EnsObs
(
ens
,
gen_mulist
[
i
],
en0_ps
,
en0_vec
)
...
...
tools.jl
View file @
33efe4e2
...
@@ -129,32 +129,6 @@ function comp_mat(ensinfo::EnsInfo, tot_obs::Vector{juobs.Corr}, tau::Int64)
...
@@ -129,32 +129,6 @@ function comp_mat(ensinfo::EnsInfo, tot_obs::Vector{juobs.Corr}, tau::Int64)
end
end
return
mat_info
return
mat_info
end
end
function
relevant_corr
(
ensinfo
::
EnsInfo
,
tot_obs
::
Vector
{
juobs
.
Corr
})
mulist
=
getfield
.
(
tot_obs
,
:
mu
)
res_obs
=
Vector
{
juobs
.
Corr
}(
undef
,
0
)
if
sector
[
"ll"
]
push!
(
res_obs
,
get_ll
(
mulist
,
tot_obs
,
ensinfo
.
deg
))
end
if
sector
[
"ls"
]
push!
(
res_obs
,
get_ls
(
mulist
,
tot_obs
,
ensinfo
.
deg
))
end
if
sector
[
"lh"
]
toadd
=
get_lh
(
mulist
,
tot_obs
,
ensinfo
.
deg
)
[
push!
(
res_obs
,
toadd
[
i
])
for
i
=
1
:
length
(
toadd
)]
end
if
sector
[
"ss"
]
push!
(
res_obs
,
get_ss
(
mulist
,
tot_obs
,
ensinfo
.
deg
))
end
if
sector
[
"sh"
]
toadd
=
get_sh
(
mulist
,
tot_obs
,
ensinfo
.
deg
)
[
push!
(
res_obs
,
toadd
[
i
])
for
i
=
1
:
length
(
toadd
)]
end
if
sector
[
"hh"
]
toadd
=
get_hh
(
mulist
,
tot_obs
,
ensinfo
.
deg
)
[
push!
(
res_obs
,
toadd
[
i
])
for
i
=
1
:
length
(
toadd
)]
end
return
res_obs
end
function
gevp_mass
(
mat_obs
::
Vector
{
MatInfo
};
t0
::
Int64
=
2
,
delta_t_in
::
Array
{
Int64
}
=
[
2
,
5
],
wpm
::
Union
{
Nothing
,
Dict
{
Int64
,
Vector
{
Float64
}}}
=
nothing
)
function
gevp_mass
(
mat_obs
::
Vector
{
MatInfo
};
t0
::
Int64
=
2
,
delta_t_in
::
Array
{
Int64
}
=
[
2
,
5
],
wpm
::
Union
{
Nothing
,
Dict
{
Int64
,
Vector
{
Float64
}}}
=
nothing
)
y0s
=
getfield
.
(
mat_obs
,
:
y0
)
y0s
=
getfield
.
(
mat_obs
,
:
y0
)
mu_list
=
getfield
.
(
mat_obs
,
:
mu
)
mu_list
=
getfield
.
(
mat_obs
,
:
mu
)
...
...
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