Commits

Lisandro Dalcin committed d5d478d

Add IGAElementReference()

  • Participants
  • Parent commits d469d07

Comments (0)

Files changed (2)

File include/petiga.h

 
 PETSC_EXTERN PetscErrorCode IGAElementCreate(IGAElement *element);
 PETSC_EXTERN PetscErrorCode IGAElementDestroy(IGAElement *element);
+PETSC_EXTERN PetscErrorCode IGAElementReference(IGAElement element);
 PETSC_EXTERN PetscErrorCode IGAElementReset(IGAElement element);
 PETSC_EXTERN PetscErrorCode IGAElementInit(IGAElement element,IGA iga);
 

File src/petigaelem.c

 }
 
 #undef  __FUNCT__
+#define __FUNCT__ "IGAElementReference"
+PetscErrorCode IGAElementReference(IGAElement element)
+{
+  PetscFunctionBegin;
+  PetscValidPointer(element,1);
+  element->refct++;
+  PetscFunctionReturn(0);
+}
+
+#undef  __FUNCT__
 #define __FUNCT__ "IGAElementFreeWork"
 static
 PetscErrorCode IGAElementFreeWork(IGAElement element)