Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
3ac5664b
Commit
3ac5664b
authored
Jul 18, 2017
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error in Toeplitz test
parent
bed147d5
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
test/Fortran/test.F90
test/Fortran/test.F90
+3
-16
test/shared/test_prepare_matrix_template.X90
test/shared/test_prepare_matrix_template.X90
+1
-1
No files found.
test/Fortran/test.F90
View file @
3ac5664b
...
...
@@ -221,21 +221,7 @@ program test
#endif
#if defined(__EIGENVALUES) || defined(__SOLVE_TRIDIAGONAL)
#ifdef TEST_REAL
#ifdef TEST_SINGLE
call
prepare_toeplitz_matrix_real_single
(
na
,
d
,
sd
,
ds
,
sds
,
a
,
as
,
z
,
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
)
#else
call
prepare_toeplitz_matrix_real_double
(
na
,
d
,
sd
,
ds
,
sds
,
a
,
as
,
z
,
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
)
#endif
#endif
#ifdef TEST_COMPLEX
#ifdef TEST_SINGLE
call
prepare_toeplitz_matrix_complex_single
(
na
,
d
,
sd
,
ds
,
sds
,
a
,
as
,
z
,
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
)
#else
call
prepare_toeplitz_matrix_complex_double
(
na
,
d
,
sd
,
ds
,
sds
,
a
,
as
,
z
,
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
)
#endif
#endif
call
prepare_toeplitz_matrix
(
na
,
d
,
sd
,
ds
,
sds
,
a
,
as
,
z
,
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
)
#endif
if
(
elpa_init
(
CURRENT_API_VERSION
)
/
=
ELPA_OK
)
then
...
...
@@ -342,7 +328,6 @@ program test
if
(
myid
.eq.
0
)
then
#ifdef TEST_SOLVER_2STAGE
call
e
%
print_times
(
"e%eigenvectors()"
)
call
e
%
print_times
(
elpa_int_value_to_string
(
KERNEL_KEY
,
kernel
))
#else
#ifdef __EIGENVECTORS
...
...
@@ -372,6 +357,8 @@ program test
#if defined(__EIGENVALUES) || defined(__SOLVE_TRIDIAGONAL)
status
=
0
! analytic solution
diagonalElement
=
ds
(
1
)
subdiagonalElement
=
sds
(
1
)
do
ii
=
1
,
na
#ifdef TEST_DOUBLE
ev_analytic
(
ii
)
=
diagonalElement
+
2.0
*
subdiagonalElement
*
cos
(
pi
*
real
(
ii
,
kind
=
rk8
)/
real
(
na
+1
,
kind
=
rk8
)
)
...
...
test/shared/test_prepare_matrix_template.X90
View file @
3ac5664b
...
...
@@ -216,7 +216,7 @@ subroutine prepare_matrix_&
implicit
none
integer
,
intent
(
in
)
::
na
,
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
integer
::
diagonalElement
,
subdiagonalElement
real
(
kind
=
C_DATATYPE_KIND
)
::
diagonalElement
,
subdiagonalElement
real
(
kind
=
C_DATATYPE_KIND
)
::
d
(:),
sd
(:),
ds
(:),
sds
(:)
#if REALCASE == 1
...
...
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