Actual source code: lmeregis.c

slepc-3.18.0 2022-10-01
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/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: {
 26:   if (LMERegisterAllCalled) return 0;
 27:   LMERegisterAllCalled = PETSC_TRUE;
 28:   LMERegister(LMEKRYLOV,LMECreate_Krylov);
 29:   return 0;
 30: }

 32: /*@C
 33:   LMEMonitorRegisterAll - Registers all the monitors in the LME package.

 35:   Not Collective

 37:   Level: advanced

 39: .seealso: LMEMonitorRegister()
 40: @*/
 41: PetscErrorCode LMEMonitorRegisterAll(void)
 42: {
 43:   if (LMEMonitorRegisterAllCalled) return 0;
 44:   LMEMonitorRegisterAllCalled = PETSC_TRUE;

 46:   LMEMonitorRegister("error_estimate",PETSCVIEWERASCII,PETSC_VIEWER_DEFAULT,LMEMonitorDefault,NULL,NULL);
 47:   LMEMonitorRegister("error_estimate",PETSCVIEWERDRAW,PETSC_VIEWER_DRAW_LG,LMEMonitorDefaultDrawLG,LMEMonitorDefaultDrawLGCreate,NULL);
 48:   return 0;
 49: }