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
fd4479a2
Commit
fd4479a2
authored
Apr 17, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes in Dwpl-test
parent
9210f188
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
test/dirac/test_solver_plw.jl
test/dirac/test_solver_plw.jl
+9
-8
No files found.
test/dirac/test_solver_plw.jl
View file @
fd4479a2
...
...
@@ -71,16 +71,17 @@ CG!(prop,U,DwdagDw!,dpar,lp,dws,10000,1.0e-14)
diff
=
sum
(
norm2
.
(
prop
-
prop_th
))
if
diff
<
1.0e-15
print
(
"Test Dplw for s="
,
s
,
", c="
,
c
,
" passed with "
,
diff
,
"% error!
\n
"
)
else
error
(
"Test Dplw failed with difference: "
,
diff
,
"
\n
"
)
if
diff
>
1.0e-15
error
(
"Dwpl test for s="
,
s
,
", c="
,
c
,
" failed with difference: "
,
diff
,
"
\n
"
)
end
return
nothing
return
diff
end
diff
=
0.0
for
i
in
1
:
3
for
j
in
1
:
4
Dwpw_test
(
c
=
i
,
s
=
j
)
diff
+=
Dwpw_test
(
c
=
i
,
s
=
j
)
end
end
print
(
"Dwpl test passed with average error "
,
diff
/
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