コード例 #1
0
ファイル: slepc_eigen_solver.C プロジェクト: dschwen/libmesh
void SlepcEigenSolver<T>::clear ()
{
  if (this->initialized())
    {
      this->_is_initialized = false;

      PetscErrorCode ierr=0;

      ierr = LibMeshEPSDestroy(&_eps);
      LIBMESH_CHKERR(ierr);

      // SLEPc default eigenproblem solver
      this->_eigen_solver_type = KRYLOVSCHUR;
    }
}
コード例 #2
0
void SlepcEigenSolver<T>::clear ()
{
  if (this->initialized())
    {
      this->_is_initialized = false;

      int ierr=0;

      ierr = LibMeshEPSDestroy(&_eps);
             LIBMESH_CHKERRABORT(ierr);

      // SLEPc default eigenproblem solver
#if SLEPC_VERSION_LESS_THAN(2,3,2)
    this->_eigen_solver_type = ARNOLDI;
#else
    // Krylov-Schur showed up as of Slepc 2.3.2
    this->_eigen_solver_type = KRYLOVSCHUR;
#endif
    }
}