/*
   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   SLEPc - Scalable Library for Eigenvalue Problem Computations
   Copyright (c) 2002-, Universitat Politecnica de Valencia, Spain

   This file is part of SLEPc.
   SLEPc is distributed under a 2-clause BSD license (see LICENSE).
   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/

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

SLEPC_EXTERN PetscErrorCode BVCreate_Vecs(BV);
SLEPC_EXTERN PetscErrorCode BVCreate_Contiguous(BV);
SLEPC_EXTERN PetscErrorCode BVCreate_Svec(BV);
SLEPC_EXTERN PetscErrorCode BVCreate_Mat(BV);
SLEPC_EXTERN PetscErrorCode BVCreate_Tensor(BV);

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

   Not Collective

   Level: advanced

.seealso: BVRegister()
@*/
PetscErrorCode BVRegisterAll(void)
{
  PetscFunctionBegin;
  if (BVRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
  BVRegisterAllCalled = PETSC_TRUE;
  PetscCall(BVRegister(BVVECS,BVCreate_Vecs));
  PetscCall(BVRegister(BVCONTIGUOUS,BVCreate_Contiguous));
  PetscCall(BVRegister(BVSVEC,BVCreate_Svec));
  PetscCall(BVRegister(BVMAT,BVCreate_Mat));
  PetscCall(BVRegister(BVTENSOR,BVCreate_Tensor));
  PetscFunctionReturn(PETSC_SUCCESS);
}
