Actual source code: lmeregis.c

slepc-3.15.0 2021-03-31
Report Typos and Errors
  1: /*
  2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
  4:    Copyright (c) 2002-2021, 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/lmeimpl.h>

 13: SLEPC_EXTERN PetscErrorCode LMECreate_Krylov(LME);

 15: /*@C
 16:   LMERegisterAll - Registers all the matrix functions in the LME package.

 18:   Not Collective

 20:   Level: advanced

 22: .seealso:  LMERegister()
 23: @*/
 24: PetscErrorCode LMERegisterAll(void)
 25: {

 29:   if (LMERegisterAllCalled) return(0);
 30:   LMERegisterAllCalled = PETSC_TRUE;
 31:   LMERegister(LMEKRYLOV,LMECreate_Krylov);
 32:   return(0);
 33: }

 35: /*@C
 36:   LMEMonitorRegisterAll - Registers all the monitors in the LME package.

 38:   Not Collective

 40:   Level: advanced
 41: @*/
 42: PetscErrorCode LMEMonitorRegisterAll(void)
 43: {

 47:   if (LMEMonitorRegisterAllCalled) return(0);
 48:   LMEMonitorRegisterAllCalled = PETSC_TRUE;

 50:   LMEMonitorRegister("error_estimate",PETSCVIEWERASCII,PETSC_VIEWER_DEFAULT,LMEMonitorDefault,NULL,NULL);
 51:   LMEMonitorRegister("error_estimate",PETSCVIEWERDRAW,PETSC_VIEWER_DRAW_LG,LMEMonitorDefaultDrawLG,LMEMonitorDefaultDrawLGCreate,NULL);
 52:   return(0);
 53: }