LCOV - code coverage report
Current view: top level - sys/classes/fn/interface - fnregis.c (source / functions) Hit Total Coverage
Test: SLEPc Lines: 12 12 100.0 %
Date: 2024-04-24 00:57:47 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       3             :    SLEPc - Scalable Library for Eigenvalue Problem Computations
       4             :    Copyright (c) 2002-, Universitat Politecnica de Valencia, Spain
       5             : 
       6             :    This file is part of SLEPc.
       7             :    SLEPc is distributed under a 2-clause BSD license (see LICENSE).
       8             :    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       9             : */
      10             : 
      11             : #include <slepc/private/fnimpl.h>      /*I "slepcfn.h" I*/
      12             : 
      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);
      20             : 
      21             : /*@C
      22             :    FNRegisterAll - Registers all of the math functions in the FN package.
      23             : 
      24             :    Not Collective
      25             : 
      26             :    Level: advanced
      27             : 
      28             : .seealso: FNRegister()
      29             : @*/
      30         442 : PetscErrorCode FNRegisterAll(void)
      31             : {
      32         442 :   PetscFunctionBegin;
      33         442 :   if (FNRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
      34         147 :   FNRegisterAllCalled = PETSC_TRUE;
      35         147 :   PetscCall(FNRegister(FNCOMBINE,FNCreate_Combine));
      36         147 :   PetscCall(FNRegister(FNRATIONAL,FNCreate_Rational));
      37         147 :   PetscCall(FNRegister(FNEXP,FNCreate_Exp));
      38         147 :   PetscCall(FNRegister(FNLOG,FNCreate_Log));
      39         147 :   PetscCall(FNRegister(FNPHI,FNCreate_Phi));
      40         147 :   PetscCall(FNRegister(FNSQRT,FNCreate_Sqrt));
      41         147 :   PetscCall(FNRegister(FNINVSQRT,FNCreate_Invsqrt));
      42         147 :   PetscFunctionReturn(PETSC_SUCCESS);
      43             : }

Generated by: LCOV version 1.14