Commits

Lisandro Dalcin committed 6638a7d

Add IGAPointReference()

Comments (0)

Files changed (2)

 };
 PETSC_EXTERN PetscErrorCode IGAPointCreate(IGAPoint *point);
 PETSC_EXTERN PetscErrorCode IGAPointDestroy(IGAPoint *point);
+PETSC_EXTERN PetscErrorCode IGAPointReference(IGAPoint point);
 PETSC_EXTERN PetscErrorCode IGAPointReset(IGAPoint point);
 PETSC_EXTERN PetscErrorCode IGAPointInit(IGAPoint point,IGAElement element);
 
 }
 
 #undef  __FUNCT__
+#define __FUNCT__ "IGAPointReference"
+PetscErrorCode IGAPointReference(IGAPoint point)
+{
+  PetscFunctionBegin;
+  PetscValidPointer(point,1);
+  point->refct++;
+  PetscFunctionReturn(0);
+}
+
+#undef  __FUNCT__
 #define __FUNCT__ "IGAPointFreeWork"
 static
 PetscErrorCode IGAPointFreeWork(IGAPoint point)