LCOV - code coverage report
Current view: top level - lme/interface - lmeregis.c (source / functions) Hit Total Coverage
Test: SLEPc Lines: 13 13 100.0 %
Date: 2024-03-29 00:34:52 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-, 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/lmeimpl.h>  /*I "slepclme.h" I*/
      12             : 
      13             : SLEPC_EXTERN PetscErrorCode LMECreate_Krylov(LME);
      14             : 
      15             : /*@C
      16             :   LMERegisterAll - Registers all the matrix functions in the LME package.
      17             : 
      18             :   Not Collective
      19             : 
      20             :   Level: advanced
      21             : 
      22             : .seealso: LMERegister()
      23             : @*/
      24          18 : PetscErrorCode LMERegisterAll(void)
      25             : {
      26          18 :   PetscFunctionBegin;
      27          18 :   if (LMERegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
      28          10 :   LMERegisterAllCalled = PETSC_TRUE;
      29          10 :   PetscCall(LMERegister(LMEKRYLOV,LMECreate_Krylov));
      30          10 :   PetscFunctionReturn(PETSC_SUCCESS);
      31             : }
      32             : 
      33             : /*@C
      34             :   LMEMonitorRegisterAll - Registers all the monitors in the LME package.
      35             : 
      36             :   Not Collective
      37             : 
      38             :   Level: advanced
      39             : 
      40             : .seealso: LMEMonitorRegister()
      41             : @*/
      42          10 : PetscErrorCode LMEMonitorRegisterAll(void)
      43             : {
      44          10 :   PetscFunctionBegin;
      45          10 :   if (LMEMonitorRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
      46          10 :   LMEMonitorRegisterAllCalled = PETSC_TRUE;
      47             : 
      48          10 :   PetscCall(LMEMonitorRegister("error_estimate",PETSCVIEWERASCII,PETSC_VIEWER_DEFAULT,LMEMonitorDefault,NULL,NULL));
      49          10 :   PetscCall(LMEMonitorRegister("error_estimate",PETSCVIEWERDRAW,PETSC_VIEWER_DRAW_LG,LMEMonitorDefaultDrawLG,LMEMonitorDefaultDrawLGCreate,NULL));
      50          10 :   PetscFunctionReturn(PETSC_SUCCESS);
      51             : }

Generated by: LCOV version 1.14