Actual source code: itregis.c

  1: /*
  2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
  4:    Copyright (c) 2002-2013, Universitat Politecnica de Valencia, Spain

  6:    This file is part of SLEPc.

  8:    SLEPc is free software: you can redistribute it and/or modify it under  the
  9:    terms of version 3 of the GNU Lesser General Public License as published by
 10:    the Free Software Foundation.

 12:    SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
 13:    WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
 14:    FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
 15:    more details.

 17:    You  should have received a copy of the GNU Lesser General  Public  License
 18:    along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
 19:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 20: */

 22: #include <slepc-private/epsimpl.h>  /*I "slepceps.h" I*/

 24: PETSC_EXTERN PetscErrorCode EPSCreate_Power(EPS);
 25: PETSC_EXTERN PetscErrorCode EPSCreate_Subspace(EPS);
 26: PETSC_EXTERN PetscErrorCode EPSCreate_Arnoldi(EPS);
 27: PETSC_EXTERN PetscErrorCode EPSCreate_Lanczos(EPS);
 28: PETSC_EXTERN PetscErrorCode EPSCreate_KrylovSchur(EPS);
 29: #if defined(SLEPC_HAVE_ARPACK)
 30: PETSC_EXTERN PetscErrorCode EPSCreate_ARPACK(EPS);
 31: #endif
 32: PETSC_EXTERN PetscErrorCode EPSCreate_LAPACK(EPS);
 33: #if defined(SLEPC_HAVE_BLZPACK) && !defined(PETSC_USE_COMPLEX)
 34: PETSC_EXTERN PetscErrorCode EPSCreate_BLZPACK(EPS);
 35: #endif
 36: #if defined(SLEPC_HAVE_TRLAN) && !defined(PETSC_USE_COMPLEX)
 37: PETSC_EXTERN PetscErrorCode EPSCreate_TRLAN(EPS);
 38: #endif
 39: #if defined(SLEPC_HAVE_BLOPEX)
 40: PETSC_EXTERN PetscErrorCode EPSCreate_BLOPEX(EPS);
 41: #endif
 42: #if defined(SLEPC_HAVE_PRIMME)
 43: PETSC_EXTERN PetscErrorCode EPSCreate_PRIMME(EPS eps);
 44: #endif
 45: #if defined(SLEPC_HAVE_FEAST)
 46: PETSC_EXTERN PetscErrorCode EPSCreate_FEAST(EPS);
 47: #endif
 48: PETSC_EXTERN PetscErrorCode EPSCreate_GD(EPS eps);
 49: PETSC_EXTERN PetscErrorCode EPSCreate_JD(EPS eps);
 50: PETSC_EXTERN PetscErrorCode EPSCreate_RQCG(EPS eps);
 51: PETSC_EXTERN PetscErrorCode EPSCreate_CISS(EPS eps);

 55: /*@C
 56:   EPSRegisterAll - Registers all the eigenvalue solvers in the EPS package.

 58:   Not Collective

 60:   Level: advanced

 62: .seealso:  EPSRegister()
 63: @*/
 64: PetscErrorCode EPSRegisterAll(void)
 65: {

 69:   EPSRegisterAllCalled = PETSC_TRUE;
 70:   EPSRegister(EPSKRYLOVSCHUR,EPSCreate_KrylovSchur);
 71:   EPSRegister(EPSPOWER,EPSCreate_Power);
 72:   EPSRegister(EPSSUBSPACE,EPSCreate_Subspace);
 73:   EPSRegister(EPSARNOLDI,EPSCreate_Arnoldi);
 74:   EPSRegister(EPSLANCZOS,EPSCreate_Lanczos);
 75:   EPSRegister(EPSGD,EPSCreate_GD);
 76:   EPSRegister(EPSJD,EPSCreate_JD);
 77:   EPSRegister(EPSRQCG,EPSCreate_RQCG);
 78: #if defined(PETSC_USE_COMPLEX)
 79:   EPSRegister(EPSCISS,EPSCreate_CISS);
 80: #endif
 81:   EPSRegister(EPSLAPACK,EPSCreate_LAPACK);
 82: #if defined(SLEPC_HAVE_ARPACK)
 83:   EPSRegister(EPSARPACK,EPSCreate_ARPACK);
 84: #endif
 85: #if defined(SLEPC_HAVE_BLZPACK) && !defined(PETSC_USE_COMPLEX)
 86:   EPSRegister(EPSBLZPACK,EPSCreate_BLZPACK);
 87: #endif
 88: #if defined(SLEPC_HAVE_TRLAN) && !defined(PETSC_USE_COMPLEX)
 89:   EPSRegister(EPSTRLAN,EPSCreate_TRLAN);
 90: #endif
 91: #if defined(SLEPC_HAVE_BLOPEX)
 92:   EPSRegister(EPSBLOPEX,EPSCreate_BLOPEX);
 93: #endif
 94: #if defined(SLEPC_HAVE_PRIMME)
 95:   EPSRegister(EPSPRIMME,EPSCreate_PRIMME);
 96: #endif
 97: #if defined(SLEPC_HAVE_FEAST) && defined(PETSC_USE_COMPLEX)
 98:   EPSRegister(EPSFEAST,EPSCreate_FEAST);
 99: #endif
100:   return(0);
101: }