Hi,

I am working on additional wrappers for DMPlex functionality in petsc4py and I noticed that DMPlexCreateSquareBoundary is missing in the DMPlex header file. This function is required to create unit squares with multiple edges per side and therefore should be externally accessible. The according patch is attached.

Kind regards
Michael Lange
>From be36c8bb2875186ff6559ffd93fb02013e8e2bf6 Mon Sep 17 00:00:00 2001
From: Michael Lange <[email protected]>
Date: Mon, 3 Feb 2014 11:37:29 +0000
Subject: [PATCH] DMPlex: Add DMPlexCreateSquareBoundary to header

---
 include/petscdmplex.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/petscdmplex.h b/include/petscdmplex.h
index 2eeac40..39dde3e 100644
--- a/include/petscdmplex.h
+++ b/include/petscdmplex.h
@@ -123,6 +123,7 @@ PETSC_EXTERN PetscErrorCode DMPlexGenerate(DM, const char [], PetscBool , DM *);
 PETSC_EXTERN PetscErrorCode DMPlexCopyCoordinates(DM, DM);
 PETSC_EXTERN PetscErrorCode DMPlexCopyLabels(DM, DM);
 PETSC_EXTERN PetscErrorCode DMPlexCreateDoublet(MPI_Comm, PetscInt, PetscBool, PetscBool, PetscBool, PetscReal, DM *);
+PETSC_EXTERN PetscErrorCode DMPlexCreateSquareBoundary(DM, const PetscReal [], const PetscReal [], const PetscInt []);
 PETSC_EXTERN PetscErrorCode DMPlexCreateCubeBoundary(DM, const PetscReal [], const PetscReal [], const PetscInt []);
 PETSC_EXTERN PetscErrorCode DMPlexCreateBoxMesh(MPI_Comm, PetscInt, PetscBool, DM *);
 PETSC_EXTERN PetscErrorCode DMPlexCreateHexBoxMesh(MPI_Comm,PetscInt,const PetscInt[],DM *);
-- 
1.7.9.5

Reply via email to