Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LGPU FPP
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
LGPU FPP
Commits
bb436c9a
Commit
bb436c9a
authored
Apr 17, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small bug fix in Dwpl-test
parent
fd4479a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
test/dirac/test_solver_plw.jl
test/dirac/test_solver_plw.jl
+7
-7
No files found.
test/dirac/test_solver_plw.jl
View file @
bb436c9a
...
...
@@ -69,19 +69,19 @@ g5Dw!(prop,U,pwave,dpar,lp)
CG!
(
prop
,
U
,
DwdagDw!
,
dpar
,
lp
,
dws
,
10000
,
1.0e-14
)
dif
f
=
sum
(
norm2
.
(
prop
-
prop_th
))
dif
=
sum
(
norm2
.
(
prop
-
prop_th
))
if
dif
f
>
1.0e-15
error
(
"Dwpl test for s="
,
s
,
", c="
,
c
,
" failed with difference: "
,
dif
f
,
"
\n
"
)
if
dif
>
1.0e-15
error
(
"Dwpl test for s="
,
s
,
", c="
,
c
,
" failed with difference: "
,
dif
,
"
\n
"
)
end
return
dif
f
return
dif
end
dif
f
=
0.0
dif
=
0.0
for
i
in
1
:
3
for
j
in
1
:
4
dif
f
+=
Dwpw_test
(
c
=
i
,
s
=
j
)
dif
+=
Dwpw_test
(
c
=
i
,
s
=
j
)
end
end
print
(
"Dwpl test passed with average error "
,
diff
/
12
)
\ No newline at end of file
print
(
"Dwpl test passed with average error "
,
dif
/
12
)
\ No newline at end of file
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