Actual source code: fnregis.c

slepc-3.18.2 2023-01-26
Report Typos and Errors
  1: /*
  2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
  4:    Copyright (c) 2002-, Universitat Politecnica de Valencia, Spain

  6:    This file is part of SLEPc.
  7:    SLEPc is distributed under a 2-clause BSD license (see LICENSE).
  8:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  9: */

 11: #include <slepc/private/fnimpl.h>

 13: SLEPC_EXTERN PetscErrorCode FNCreate_Combine(FN);
 14: SLEPC_EXTERN PetscErrorCode FNCreate_Rational(FN);
 15: SLEPC_EXTERN PetscErrorCode FNCreate_Exp(FN);
 16: SLEPC_EXTERN PetscErrorCode FNCreate_Log(FN);
 17: SLEPC_EXTERN PetscErrorCode FNCreate_Phi(FN);
 18: SLEPC_EXTERN PetscErrorCode FNCreate_Sqrt(FN);
 19: SLEPC_EXTERN PetscErrorCode FNCreate_Invsqrt(FN);

 21: /*@C
 22:    FNRegisterAll - Registers all of the math functions in the FN package.

 24:    Not Collective

 26:    Level: advanced

 28: .seealso: FNRegister()
 29: @*/
 30: PetscErrorCode FNRegisterAll(void)
 31: {
 32:   if (FNRegisterAllCalled) return 0;
 33:   FNRegisterAllCalled = PETSC_TRUE;
 34:   FNRegister(FNCOMBINE,FNCreate_Combine);
 35:   FNRegister(FNRATIONAL,FNCreate_Rational);
 36:   FNRegister(FNEXP,FNCreate_Exp);
 37:   FNRegister(FNLOG,FNCreate_Log);
 38:   FNRegister(FNPHI,FNCreate_Phi);
 39:   FNRegister(FNSQRT,FNCreate_Sqrt);
 40:   FNRegister(FNINVSQRT,FNCreate_Invsqrt);
 41:   return 0;
 42: }