-
This is not an issue, I'm just looking for confirmation. The BAND/cnbdr2.f example exits with
This means the initial residual was 0, which seems to make sense, since the example uses mode 3, arpack-ng/EXAMPLES/BAND/cnbdr2.f Line 172 in 569a385 which accesses the M matrix arpack-ng/EXAMPLES/BAND/cnband.f Lines 492 to 503 in 569a385 but that is never set (just filled with zeros). I'm running the examples as tests, so I just need someone to confirm that this is expected behavior. All the other examples run successfully (EDIT: well, znbdr2.f also fails). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
So, since this example seems to solve a standard eigenvalue problem, setting M to the identity matrix should be enough (cnbdr2.f lines 199-209): c %---------------%
c | Main diagonal |
c %---------------%
c
h = one / cmplx(nxi+1)
h2 = h*h
c
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 Same for znbdr2.f. Error message gone... |
Beta Was this translation helpful? Give feedback.
-
I'd be glad to do a PR with the fix, but can someone else here confirm the issue? Would like to know if this is expected or if there's something wrong with my setup.... |
Beta Was this translation helpful? Give feedback.
-
@fghoussen If the examples run correctly for you, could you please post their output, so I can compare with my results (with above fix applied). cnbdr2
znbdr2
|
Beta Was this translation helpful? Give feedback.
So, since this example seems to solve a standard eigenvalue problem, setting M to the identity matrix should be enough (cnbdr2.f lines 199-209):
Same for znbdr2.f. Error message gone...