Actual source code: stregis.c

  1: /*
  2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
  4:    Copyright (c) 2002-2009, 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/stimpl.h

 25: EXTERN PetscErrorCode STCreate_Shell(ST);
 26: EXTERN PetscErrorCode STCreate_Shift(ST);
 27: EXTERN PetscErrorCode STCreate_Sinvert(ST);
 28: EXTERN PetscErrorCode STCreate_Cayley(ST);
 29: EXTERN PetscErrorCode STCreate_Fold(ST);

 34: /*@C
 35:    STRegisterAll - Registers all of the spectral transformations in the ST package.

 37:    Not Collective

 39:    Input Parameter:
 40: .  path - the library where the routines are to be found (optional)

 42:    Level: advanced

 44: .seealso: STRegisterDynamic()
 45: @*/
 46: PetscErrorCode STRegisterAll(char *path)
 47: {

 51:   STRegisterDynamic(STSHELL  ,path,"STCreate_Shell",STCreate_Shell);
 52:   STRegisterDynamic(STSHIFT  ,path,"STCreate_Shift",STCreate_Shift);
 53:   STRegisterDynamic(STSINV   ,path,"STCreate_Sinvert",STCreate_Sinvert);
 54:   STRegisterDynamic(STCAYLEY ,path,"STCreate_Cayley",STCreate_Cayley);
 55:   STRegisterDynamic(STFOLD   ,path,"STCreate_Fold",STCreate_Fold);
 56:   return(0);
 57: }