Commits

Karl Rupp committed 9f10968

ViennaCL: Removed seqviennacl/aijassemble.cxx (would trigger error, now uses existing fallback)

  • Participants
  • Parent commits e4a0ef1

Comments (0)

Files changed (3)

src/mat/impls/aij/seq/seqviennacl/aijassemble.cxx

-#include "petscconf.h"
-
-#include "../src/mat/impls/aij/seq/aij.h"          /*I "petscmat.h" I*/
-#include "petscbt.h"
-#include "../src/vec/vec/impls/dvecimpl.h"
-#include "petsc-private/vecimpl.h"
-
-
-#include "../src/mat/impls/aij/seq/seqviennacl/viennaclmatimpl.h"
-#include "viennacl/linalg/prod.hpp"
-
-
-
-// Ne: Number of elements
-// Nl: Number of dof per element
-#undef __FUNCT__
-#define __FUNCT__ "MatSetValuesBatch_SeqAIJViennaCL"
-PetscErrorCode MatSetValuesBatch_SeqAIJViennaCL(Mat J, PetscInt Ne, PetscInt Nl, PetscInt *elemRows, const PetscScalar *elemMats)
-{
-  //TODO
-  SETERRQ(PETSC_COMM_SELF,PETSC_ERR_LIB,"ViennaCL error: Implementation of MatSetValuesBatch_SeqAIJViennaCL() missing.");
-}

src/mat/impls/aij/seq/seqviennacl/aijviennacl.cxx

 }
 
 
-extern PetscErrorCode MatSetValuesBatch_SeqAIJViennaCL(Mat, PetscInt, PetscInt, PetscInt*,const PetscScalar*);
-
-
 #undef __FUNCT__
 #define __FUNCT__ "MatCreate_SeqAIJViennaCL"
 PETSC_EXTERN PetscErrorCode MatCreate_SeqAIJViennaCL(Mat B)
   B->ops->assemblyend    = MatAssemblyEnd_SeqAIJViennaCL;
   B->ops->destroy        = MatDestroy_SeqAIJViennaCL;
   B->ops->getvecs        = MatGetVecs_SeqAIJViennaCL;
-  B->ops->setvaluesbatch = MatSetValuesBatch_SeqAIJViennaCL;
 
   //ierr = PetscObjectComposeFunction((PetscObject)B,"MatViennaCLSetFormat_C", "MatViennaCLSetFormat_SeqAIJViennaCL", MatViennaCLSetFormat_SeqAIJViennaCL);CHKERRQ(ierr);
   ierr = PetscObjectChangeTypeName((PetscObject)B,MATSEQAIJVIENNACL);CHKERRQ(ierr);

src/mat/impls/aij/seq/seqviennacl/makefile

 
 CFLAGS    =
 FFLAGS    =
-SOURCEC   = aijviennacl.cxx aijassemble.cxx
+SOURCEC   = aijviennacl.cxx
 SOURCEF   =
 SOURCEH   = viennaclmatimpl.h
 LIBBASE   = libpetscmat