Actual source code: bvregis.c

slepc-3.7.3 2016-09-29
Report Typos and Errors
  1: /*
  2:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  3:    SLEPc - Scalable Library for Eigenvalue Problem Computations
  4:    Copyright (c) 2002-2016, Universitat Politecnica de Valencia, Spain

  6:    This file is part of SLEPc.

  8:    SLEPc is free software: you can redistribute it and/or modify it under  the
  9:    terms of version 3 of the GNU Lesser General Public License as published by
 10:    the Free Software Foundation.

 12:    SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
 13:    WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
 14:    FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
 15:    more details.

 17:    You  should have received a copy of the GNU Lesser General  Public  License
 18:    along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
 19:    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 20: */

 22: #include <slepc/private/bvimpl.h>          /*I   "slepcbv.h"   I*/

 24: PETSC_EXTERN PetscErrorCode BVCreate_Vecs(BV);
 25: PETSC_EXTERN PetscErrorCode BVCreate_Contiguous(BV);
 26: PETSC_EXTERN PetscErrorCode BVCreate_Svec(BV);
 27: PETSC_EXTERN PetscErrorCode BVCreate_Mat(BV);

 31: /*@C
 32:    BVRegisterAll - Registers all of the storage variants in the BV package.

 34:    Not Collective

 36:    Level: advanced

 38: .seealso: BVRegister()
 39: @*/
 40: PetscErrorCode BVRegisterAll(void)
 41: {

 45:   if (BVRegisterAllCalled) return(0);
 46:   BVRegisterAllCalled = PETSC_TRUE;
 47:   BVRegister(BVVECS,BVCreate_Vecs);
 48:   BVRegister(BVCONTIGUOUS,BVCreate_Contiguous);
 49:   BVRegister(BVSVEC,BVCreate_Svec);
 50:   BVRegister(BVMAT,BVCreate_Mat);
 51:   return(0);
 52: }