LCOV - code coverage report
Current view: top level - nep/interface - nepregis.c (source / functions) Hit Total Coverage
Test: SLEPc Lines: 24 24 100.0 %
Date: 2021-08-02 00:35:43 Functions: 2 2 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-2021, 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/nepimpl.h>      /*I "slepcnep.h" I*/
      12             : 
      13             : SLEPC_EXTERN PetscErrorCode NEPCreate_RII(NEP);
      14             : SLEPC_EXTERN PetscErrorCode NEPCreate_SLP(NEP);
      15             : SLEPC_EXTERN PetscErrorCode NEPCreate_NArnoldi(NEP);
      16             : SLEPC_EXTERN PetscErrorCode NEPCreate_Interpol(NEP);
      17             : #if defined(PETSC_USE_COMPLEX)
      18             : SLEPC_EXTERN PetscErrorCode NEPCreate_CISS(NEP);
      19             : #endif
      20             : SLEPC_EXTERN PetscErrorCode NEPCreate_NLEIGS(NEP);
      21             : 
      22             : /*@C
      23             :    NEPRegisterAll - Registers all the solvers in the NEP package.
      24             : 
      25             :    Not Collective
      26             : 
      27             :    Level: advanced
      28             : 
      29             : .seealso:  NEPRegister()
      30             : @*/
      31         221 : PetscErrorCode NEPRegisterAll(void)
      32             : {
      33         221 :   PetscErrorCode ierr;
      34             : 
      35         221 :   PetscFunctionBegin;
      36         221 :   if (NEPRegisterAllCalled) PetscFunctionReturn(0);
      37         111 :   NEPRegisterAllCalled = PETSC_TRUE;
      38         111 :   ierr = NEPRegister(NEPRII,NEPCreate_RII);CHKERRQ(ierr);
      39         111 :   ierr = NEPRegister(NEPSLP,NEPCreate_SLP);CHKERRQ(ierr);
      40         111 :   ierr = NEPRegister(NEPNARNOLDI,NEPCreate_NArnoldi);CHKERRQ(ierr);
      41         111 :   ierr = NEPRegister(NEPINTERPOL,NEPCreate_Interpol);CHKERRQ(ierr);
      42             : #if defined(PETSC_USE_COMPLEX)
      43         111 :   ierr = NEPRegister(NEPCISS,NEPCreate_CISS);CHKERRQ(ierr);
      44             : #endif
      45         111 :   ierr = NEPRegister(NEPNLEIGS,NEPCreate_NLEIGS);CHKERRQ(ierr);
      46         111 :   PetscFunctionReturn(0);
      47             : }
      48             : 
      49             : /*@C
      50             :   NEPMonitorRegisterAll - Registers all the monitors in the NEP package.
      51             : 
      52             :   Not Collective
      53             : 
      54             :   Level: advanced
      55             : @*/
      56         111 : PetscErrorCode NEPMonitorRegisterAll(void)
      57             : {
      58         111 :   PetscErrorCode ierr;
      59             : 
      60         111 :   PetscFunctionBegin;
      61         111 :   if (NEPMonitorRegisterAllCalled) PetscFunctionReturn(0);
      62         111 :   NEPMonitorRegisterAllCalled = PETSC_TRUE;
      63             : 
      64         111 :   ierr = NEPMonitorRegister("first_approximation",PETSCVIEWERASCII,PETSC_VIEWER_DEFAULT,NEPMonitorFirst,NULL,NULL);CHKERRQ(ierr);
      65         111 :   ierr = NEPMonitorRegister("first_approximation",PETSCVIEWERDRAW,PETSC_VIEWER_DRAW_LG,NEPMonitorFirstDrawLG,NEPMonitorFirstDrawLGCreate,NULL);CHKERRQ(ierr);
      66         111 :   ierr = NEPMonitorRegister("all_approximations",PETSCVIEWERASCII,PETSC_VIEWER_DEFAULT,NEPMonitorAll,NULL,NULL);CHKERRQ(ierr);
      67         111 :   ierr = NEPMonitorRegister("all_approximations",PETSCVIEWERDRAW,PETSC_VIEWER_DRAW_LG,NEPMonitorAllDrawLG,NEPMonitorAllDrawLGCreate,NULL);CHKERRQ(ierr);
      68         111 :   ierr = NEPMonitorRegister("convergence_history",PETSCVIEWERASCII,PETSC_VIEWER_DEFAULT,NEPMonitorConverged,NEPMonitorConvergedCreate,NEPMonitorConvergedDestroy);CHKERRQ(ierr);
      69         111 :   ierr = NEPMonitorRegister("convergence_history",PETSCVIEWERDRAW,PETSC_VIEWER_DRAW_LG,NEPMonitorConvergedDrawLG,NEPMonitorConvergedDrawLGCreate,NEPMonitorConvergedDestroy);CHKERRQ(ierr);
      70         111 :   PetscFunctionReturn(0);
      71             : }
      72             : 

Generated by: LCOV version 1.14