Skip to content

Commit

Permalink
Fix examples BAND _nbdr2 returning error info = -9
Browse files Browse the repository at this point in the history
Both examples access the M matrix, so we initialize M to be the identity matrix. See #443 for discussion.
  • Loading branch information
wo80 committed Nov 22, 2023
1 parent 569a385 commit 3d10dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions EXAMPLES/BAND/cnbdr2.f
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ program cnbdr2
idiag = kl+ku+1
do 30 j = 1, n
a(idiag,j) = (4.0E+0, 0.0E+0) / h2
m(idiag,j) = (1.0E+0, 0.0E+0)
30 continue
c
c %-------------------------------------%
Expand Down
1 change: 1 addition & 0 deletions EXAMPLES/BAND/znbdr2.f
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ program znbdr2
idiag = kl+ku+1
do 30 j = 1, n
a(idiag,j) = (4.0D+0, 0.0D+0) / h2
m(idiag,j) = (1.0D+0, 0.0D+0)
30 continue
c
c %-------------------------------------%
Expand Down

0 comments on commit 3d10dd9

Please sign in to comment.