Commit 4ecb383d authored by Guillaume Demesy's avatar Guillaume Demesy

NEP_TARGET_MAGNITUDE is better

parent e28da6c0
......@@ -954,7 +954,7 @@ static void _nonlinearEVP(struct DofData * DofData_P, int numEigenValues,
_try(NEPSetDimensions(nep, numEigenValues, PETSC_DECIDE, PETSC_DECIDE));
_try(NEPSetTolerances(nep, 1.e-6, PETSC_DEFAULT));
_try(NEPSetType(nep, NEPNLEIGS));
_try(NEPSetWhichEigenpairs(nep, NEP_LARGEST_MAGNITUDE));
_try(NEPSetWhichEigenpairs(nep, NEP_TARGET_MAGNITUDE));
_try(NEPMonitorSet(nep, _myNepMonitor, PETSC_NULL, PETSC_NULL));
_try(NEPSetTarget(nep, shift));
_try(NEPSetFromOptions(nep));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment