Skip to content
Snippets Groups Projects
Commit 4cae3c4d authored by Guillaume Demesy's avatar Guillaume Demesy
Browse files

PEP_TARGET_MAGNITUDE is more appropriate

parent cefa47a6
No related branches found
No related tags found
1 merge request!55Nleig
Pipeline #2433 passed
...@@ -719,7 +719,7 @@ static void _polynomialEVP(struct DofData * DofData_P, int numEigenValues, ...@@ -719,7 +719,7 @@ static void _polynomialEVP(struct DofData * DofData_P, int numEigenValues,
_try(PEPSetDimensions(pep, numEigenValues, PETSC_DECIDE, PETSC_DECIDE)); _try(PEPSetDimensions(pep, numEigenValues, PETSC_DECIDE, PETSC_DECIDE));
_try(PEPSetTolerances(pep, 1.e-6, 100)); _try(PEPSetTolerances(pep, 1.e-6, 100));
_try(PEPSetType(pep, PEPTOAR)); _try(PEPSetType(pep, PEPTOAR));
_try(PEPSetWhichEigenpairs(pep, PEP_SMALLEST_MAGNITUDE)); _try(PEPSetWhichEigenpairs(pep, PEP_TARGET_MAGNITUDE));
_try(PEPMonitorSet(pep, _myPepMonitor, PETSC_NULL, PETSC_NULL)); _try(PEPMonitorSet(pep, _myPepMonitor, PETSC_NULL, PETSC_NULL));
#if defined(PETSC_USE_COMPLEX) #if defined(PETSC_USE_COMPLEX)
PetscScalar shift = shift_r + PETSC_i * shift_i; PetscScalar shift = shift_r + PETSC_i * shift_i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment