mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 03:33:42 +02:00
Added routine to import configuration in lex format
This commit is contained in:
parent
50fc5d1640
commit
ffc6818ba5
4 changed files with 64 additions and 3 deletions
|
@ -216,7 +216,7 @@ Given a point `x` with index `p`, this routine returns the index of the points
|
|||
ic = mod(div(p[2]-1,lp.rbkS[id]),lp.rbk[id])
|
||||
if (ic == lp.rbk[id]-1)
|
||||
ru = p[2] - (lp.rbk[id]-1)*lp.rbkS[id]
|
||||
else
|
||||
sfqcd_L12_b3.5320_k0.137101170000000_r0_id1n1 else
|
||||
ru = p[2] + lp.rbkS[id]
|
||||
end
|
||||
rd = p[2]
|
||||
|
@ -306,9 +306,16 @@ end
|
|||
end
|
||||
|
||||
|
||||
@inline function point_index(pt::NTuple{4, Int64}, lp::SpaceParm)
|
||||
@inline function point_index(pt::CartesianIndex, lp::SpaceParm)
|
||||
|
||||
|
||||
b = 1
|
||||
r = 1
|
||||
for i in 1:length(pt)
|
||||
b = b + ((pt[i]-1)%lp.blk[i])*lp.blkS[i]
|
||||
r = r + div((pt[i]-1),lp.blk[i])*lp.rbkS[i]
|
||||
end
|
||||
|
||||
return (b,r)
|
||||
end
|
||||
|
||||
export up, dw, updw, point_index, point_coord, point_time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue