Commits

Lisandro Dalcin committed 95c4f98

Add IGAPointGetCount()

  • Participants
  • Parent commits 7dc7023

Comments (0)

Files changed (2)

 PETSC_EXTERN PetscBool      IGAPointNext(IGAPoint point);
 
 PETSC_EXTERN PetscErrorCode IGAPointGetIndex(IGAPoint point,PetscInt *index);
+PETSC_EXTERN PetscErrorCode IGAPointGetCount(IGAPoint point,PetscInt *count);
 PETSC_EXTERN PetscErrorCode IGAPointGetSizes(IGAPoint point,PetscInt *nen,PetscInt *dof,PetscInt *dim);
 PETSC_EXTERN PetscErrorCode IGAPointGetQuadrature(IGAPoint point,PetscReal *weigth,PetscReal *detJac);
 PETSC_EXTERN PetscErrorCode IGAPointGetBasisFuns(IGAPoint point,PetscInt der,const PetscReal *basisfuns[]);

src/petigapoint.c

 }
 
 #undef  __FUNCT__
+#define __FUNCT__ "IGAPointGetCount"
+PetscErrorCode IGAPointGetCount(IGAPoint point,PetscInt *count)
+{
+  PetscFunctionBegin;
+  PetscValidPointer(point,1);
+  PetscValidIntPointer(count,2);
+  *count = point->count;
+  PetscFunctionReturn(0);
+}
+
+#undef  __FUNCT__
 #define __FUNCT__ "IGAPointGetSizes"
 PetscErrorCode IGAPointGetSizes(IGAPoint point,PetscInt *nen,PetscInt *dof,PetscInt *dim)
 {