mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 03:33:42 +02:00
Updated tests
This commit is contained in:
parent
263ae07361
commit
3a251dd1b8
7 changed files with 46 additions and 37 deletions
|
@ -2,6 +2,9 @@ using CUDA, LatticeGPU, TimerOutputs
|
|||
|
||||
#Check that Dw ( (DwdagDw)^{-1} g5 Dw g5 ) psi = psi for random fields
|
||||
|
||||
println(" # Test for the consistency of the solver")
|
||||
|
||||
|
||||
@timeit "Rand solver test" begin
|
||||
|
||||
@timeit "Generate random fields" begin
|
||||
|
@ -46,7 +49,7 @@ res = sum(norm2.(rpsi-dws.sp))
|
|||
|
||||
|
||||
if res < 1.0e-6
|
||||
print("Drand test passed with ",res,"% error!\n")
|
||||
print("Drand test passed with ",res,"% error\n")
|
||||
|
||||
else
|
||||
error("Drand test failed with difference: ",res,"\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue