The declarations allow a problem size of N maxn, computation of nev maxnev eigenvalues, and using at most ncv maxncv Lanczos basis vectors during the IRLM. The user may override the default settings used for the example problem by modifying maxn, maxnev and maxncv in the following parameter statement.
integer maxn, maxnev, maxncv, ldv
parameter (maxn=256, maxnev=10, maxncv=25, ldv=maxn )
These parameters are used in the code segment listed in Figure 2.3.4 for declaring all of the output and work arrays needed by the ARPACK subroutines dsaupd and dseupd.
c
c %--------------%
c | Local Arrays |
c %--------------%
c
Double precision
& v(ldv,maxncv), workl(maxncv*(maxncv+8)),
& workd(3*maxn), d(maxncv,2), resid(maxn),
& ax(maxn)
logical select(1)
integer iparam(11), ipntr(11)