mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 03:33:42 +02:00
Added import for CERN format. Corrected bug in Qtop
This commit is contained in:
parent
230493c9ce
commit
1ab51e0727
5 changed files with 69 additions and 10 deletions
|
@ -317,7 +317,22 @@ end
|
|||
|
||||
return (b,r)
|
||||
end
|
||||
|
||||
|
||||
"""
|
||||
function point_color(p::NTuple{2,Int64}, lp::SpaceParm)
|
||||
|
||||
Returns the sum of the cartesian coordinates of the point p=(b,r).
|
||||
"""
|
||||
@inline function point_color(p::NTuple{2,Int64}, lp::SpaceParm)
|
||||
|
||||
s = cnt(p[1], p[2], 1, lp)
|
||||
for i in 2:lp.ndim
|
||||
s = s + cnt(p[1], p[2], i, lp)
|
||||
end
|
||||
|
||||
return s
|
||||
end
|
||||
|
||||
export up, dw, updw, point_index, point_coord, point_time
|
||||
export BC_PERIODIC, BC_OPEN, BC_SF_AFWB, BC_SF_ORBI
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue