Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
7f89a133
Commit
7f89a133
authored
Oct 12, 2016
by
Andreas Marek
Browse files
Save guard against unknown values for string "method"
parent
c18b7bf5
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/elpa.F90
View file @
7f89a133
...
...
@@ -114,6 +114,7 @@ module elpa
mpi_comm_all
,
THIS_REAL_ELPA_KERNEL_API
,
&
useQR
,
method
)
result
(
success
)
use
iso_c_binding
use
elpa_utilities
implicit
none
integer
(
kind
=
c_int
),
intent
(
in
)
::
na
,
nev
,
lda
,
ldq
,
matrixCols
,
mpi_comm_rows
,
&
mpi_comm_cols
,
mpi_comm_all
...
...
@@ -140,6 +141,9 @@ module elpa
useELPA1
=
.false.
else
if
(
trim
(
method
)
.eq.
"auto"
.or.
trim
(
method
)
.eq.
"AUTO"
)
then
useELPA1
=
.false.
else
write
(
error_unit
,
*
)
"Specified method not known! Using ELPA 2-stage"
useELPA1
=
.false.
endif
endif
...
...
@@ -206,6 +210,8 @@ module elpa
mpi_comm_all
,
THIS_COMPLEX_ELPA_KERNEL_API
,&
method
)
result
(
success
)
use
iso_c_binding
use
elpa_utilities
implicit
none
integer
(
kind
=
c_int
),
intent
(
in
)
::
na
,
nev
,
lda
,
ldq
,
matrixCols
,
mpi_comm_rows
,
&
mpi_comm_cols
,
mpi_comm_all
...
...
@@ -231,6 +237,9 @@ module elpa
useELPA1
=
.false.
else
if
(
trim
(
method
)
.eq.
"auto"
.or.
trim
(
method
)
.eq.
"AUTO"
)
then
useELPA1
=
.false.
else
write
(
error_unit
,
*
)
"Specified method not known! Using ELPA 2-stage"
useELPA1
=
.false.
endif
endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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