Commits

Lisandro Dalcin  committed 6638a7d

Add IGAPointReference()

  • Participants
  • Parent commits 5cb4f23

Comments (0)

Files changed (2)

File include/petiga.h

 };
 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);
 

File src/petigapoint.c

 }
 
 #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)