1: /*
2: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3: SLEPc - Scalable Library for Eigenvalue Problem Computations
4: Copyright (c) 2002-2015, 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/fnimpl.h> /*I "slepcfn.h" I*/
24: PETSC_EXTERN PetscErrorCode FNCreate_Combine(FN);
25: PETSC_EXTERN PetscErrorCode FNCreate_Rational(FN);
26: PETSC_EXTERN PetscErrorCode FNCreate_Exp(FN);
27: PETSC_EXTERN PetscErrorCode FNCreate_Log(FN);
28: PETSC_EXTERN PetscErrorCode FNCreate_Phi(FN);
29: PETSC_EXTERN PetscErrorCode FNCreate_Sqrt(FN);
33: /*@C
34: FNRegisterAll - Registers all of the math functions in the FN package.
36: Not Collective
38: Level: advanced
39: @*/
40: PetscErrorCode FNRegisterAll(void) 41: {
45: if (FNRegisterAllCalled) return(0);
46: FNRegisterAllCalled = PETSC_TRUE;
47: FNRegister(FNCOMBINE,FNCreate_Combine);
48: FNRegister(FNRATIONAL,FNCreate_Rational);
49: FNRegister(FNEXP,FNCreate_Exp);
50: FNRegister(FNLOG,FNCreate_Log);
51: FNRegister(FNPHI,FNCreate_Phi);
52: FNRegister(FNSQRT,FNCreate_Sqrt);
53: return(0);
54: }