Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
2b5d44a3
Commit
2b5d44a3
authored
Oct 30, 2017
by
Pavel Kus
Browse files
fix in prepare_matrix tridiagonal
matrix was initialized outside of three diagonals
parent
b07e1d56
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/shared/test_prepare_matrix_template.F90
View file @
2b5d44a3
...
...
@@ -241,6 +241,13 @@ subroutine prepare_matrix_random_&
d
(:)
=
diagonalElement
sd
(:)
=
subdiagonalElement
#if REALCASE == 1
a
(:,:)
=
0.0
#endif
#if COMPLEXCASE == 1
a
(:,:)
=
(
0.0
,
0.0
)
#endif
! set up the diagonal and subdiagonals (for general solver test)
do
ii
=
1
,
na
! for diagonal elements
if
(
map_global_array_index_to_local_index
(
ii
,
ii
,
rowLocal
,
colLocal
,
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
))
then
...
...
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