Date: 2022-08-09T09:05:31+00:00

Actual source code: rgregis.c
slepc-3.17.2 2022-08-09
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/rgimpl.h>

     13: SLEPC_EXTERN PetscErrorCode RGCreate_Interval(RG);
     14: SLEPC_EXTERN PetscErrorCode RGCreate_Ellipse(RG);
     15: SLEPC_EXTERN PetscErrorCode RGCreate_Ring(RG);
     16: SLEPC_EXTERN PetscErrorCode RGCreate_Polygon(RG);

     18: /*@C
     19:    RGRegisterAll - Registers all of the regions in the RG package.

     21:    Not Collective

     23:    Level: advanced

     25: .seealso: RGRegister()
     26: @*/
     27: PetscErrorCode RGRegisterAll(void)
     28: {
     29:   if (RGRegisterAllCalled) PetscFunctionReturn(0);
     30:   RGRegisterAllCalled = PETSC_TRUE;
     31:   RGRegister(RGINTERVAL,RGCreate_Interval);
     32:   RGRegister(RGELLIPSE,RGCreate_Ellipse);
     33:   RGRegister(RGRING,RGCreate_Ring);
     34:   RGRegister(RGPOLYGON,RGCreate_Polygon);
     35:   PetscFunctionReturn(0);
     36: }