#include "slepcnep.h" PetscErrorCode NEPSetDimensions(NEP nep,PetscInt nev,PetscInt ncv,PetscInt mpd)Logically Collective on nep
nep | - the nonlinear eigensolver context | |
nev | - number of eigenvalues to compute | |
ncv | - the maximum dimension of the subspace to be used by the solver | |
mpd | - the maximum dimension allowed for the projected problem |
-nep_nev <nev> | - Sets the number of eigenvalues | |
-nep_ncv <ncv> | - Sets the dimension of the subspace | |
-nep_mpd <mpd> | - Sets the maximum projected dimension |
The parameters ncv and mpd are intimately related, so that the user is advised to set one of them at most. Normal usage is that (a) in cases where nev is small, the user sets ncv (a reasonable default is 2*nev); and (b) in cases where nev is large, the user sets mpd.
The value of ncv should always be between nev and (nev+mpd), typically ncv=nev+mpd. If nev is not too large, mpd=nev is a reasonable choice, otherwise a smaller value should be used.