Skip to content

Example BAND cnbdr2.f #443

Answered by wo80
wo80 asked this question in Q&A
Nov 21, 2023 · 3 comments · 9 replies
Discussion options

You must be logged in to vote

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...

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@fghoussen
Comment options

@wo80
Comment options

Answer selected by wo80
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@fghoussen
Comment options

@fghoussen
Comment options

@wo80
Comment options

@fghoussen
Comment options

@wo80
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #442 on November 21, 2023 09:16.