#include "slepceps.h" PetscErrorCode EPSSetDimensions(EPS eps,PetscInt nev,PetscInt ncv,PetscInt mpd)Collective on EPS
eps | - the 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 |
-eps_nev <nev> | - Sets the number of eigenvalues | |
-eps_ncv <ncv> | - Sets the dimension of the subspace | |
-eps_mpd <mpd> | - Sets the maximum projected dimension |
Use PETSC_DECIDE for ncv and mpd to assign a reasonably good value, which is dependent on the solution method.
The parameters ncv and mpd are intimately related, so that the user is advised
- In cases where nev is small, the user sets ncv (a reasonable default is 2*nev). | - - - In cases where nev is large, the user sets mpd. |