Actual source code: itregis.c

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

  6:    This file is part of SLEPc.
  7:       
  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 private/epsimpl.h

 25: EXTERN PetscErrorCode EPSCreate_POWER(EPS);
 26: EXTERN PetscErrorCode EPSCreate_SUBSPACE(EPS);
 27: EXTERN PetscErrorCode EPSCreate_ARNOLDI(EPS);
 28: EXTERN PetscErrorCode EPSCreate_LANCZOS(EPS);
 29: EXTERN PetscErrorCode EPSCreate_KRYLOVSCHUR(EPS);
 30: #if defined(SLEPC_HAVE_ARPACK)
 31: EXTERN PetscErrorCode EPSCreate_ARPACK(EPS);
 32: #endif
 33: EXTERN PetscErrorCode EPSCreate_LAPACK(EPS);
 34: #if defined(SLEPC_HAVE_BLZPACK) && !defined(PETSC_USE_COMPLEX)
 35: EXTERN PetscErrorCode EPSCreate_BLZPACK(EPS);
 36: #endif
 37: #if defined(SLEPC_HAVE_TRLAN) && !defined(PETSC_USE_COMPLEX)
 38: EXTERN PetscErrorCode EPSCreate_TRLAN(EPS);
 39: #endif
 40: #if defined(PETSC_HAVE_BLOPEX)
 41: EXTERN PetscErrorCode EPSCreate_BLOPEX(EPS);
 42: #endif
 43: #if defined(SLEPC_HAVE_PRIMME)
 44: EXTERN PetscErrorCode EPSCreate_PRIMME(EPS eps);
 45: #endif
 46: EXTERN PetscErrorCode EPSCreate_GD(EPS eps);
 47: EXTERN PetscErrorCode EPSCreate_JD(EPS eps);
 49: 
 52: /*@C
 53:   EPSRegisterAll - Registers all the eigenvalue solvers in the EPS package.

 55:   Not Collective

 57:   Level: advanced

 59: .seealso:  EPSRegisterDynamic()
 60: @*/
 61: PetscErrorCode EPSRegisterAll(char *path)
 62: {


 67:   EPSRegisterDynamic(EPSPOWER, path,"EPSCreate_POWER",
 68:                   EPSCreate_POWER);
 69:   EPSRegisterDynamic(EPSSUBSPACE, path,"EPSCreate_SUBSPACE",
 70:                   EPSCreate_SUBSPACE);
 71:   EPSRegisterDynamic(EPSARNOLDI, path,"EPSCreate_ARNOLDI",
 72:                   EPSCreate_ARNOLDI);
 73:   EPSRegisterDynamic(EPSLANCZOS, path,"EPSCreate_LANCZOS",
 74:                   EPSCreate_LANCZOS);
 75:   EPSRegisterDynamic(EPSKRYLOVSCHUR, path,"EPSCreate_KRYLOVSCHUR",
 76:                   EPSCreate_KRYLOVSCHUR);
 77: #if defined(SLEPC_HAVE_ARPACK)
 78:   EPSRegisterDynamic(EPSARPACK, path,"EPSCreate_ARPACK",
 79:                   EPSCreate_ARPACK);
 80: #endif
 81:   EPSRegisterDynamic(EPSLAPACK, path,"EPSCreate_LAPACK",
 82:                   EPSCreate_LAPACK);
 83: #if defined(SLEPC_HAVE_BLZPACK) && !defined(PETSC_USE_COMPLEX)
 84:   EPSRegisterDynamic(EPSBLZPACK, path,"EPSCreate_BLZPACK",
 85:                   EPSCreate_BLZPACK);
 86: #endif
 87: #if defined(SLEPC_HAVE_TRLAN) && !defined(PETSC_USE_COMPLEX)
 88:   EPSRegisterDynamic(EPSTRLAN, path,"EPSCreate_TRLAN",
 89:                   EPSCreate_TRLAN);
 90: #endif
 91: #if defined(PETSC_HAVE_BLOPEX)
 92:   EPSRegisterDynamic(EPSBLOPEX, path,"EPSCreate_BLOPEX",
 93:                   EPSCreate_BLOPEX);
 94: #endif
 95: #if defined(SLEPC_HAVE_PRIMME)
 96:   EPSRegisterDynamic(EPSPRIMME, path, "EPSCreate_PRIMME",
 97:                             EPSCreate_PRIMME);
 98: #endif
 99:   EPSRegisterDynamic(EPSGD, path, "EPSCreate_GD",
100:                             EPSCreate_GD);
101:   EPSRegisterDynamic(EPSJD, path, "EPSCreate_JD",
102:                             EPSCreate_JD);
103:   return(0);
104: }