[petsc-users] DMPlexCreateSubMesh

Matthew Knepley knepley at gmail.com
Thu Nov 14 15:10:18 CST 2013


On Thu, Nov 14, 2013 at 2:55 PM, Dharmendar Reddy
<dharmareddy84 at gmail.com>wrote:

> Hello,
>          Looks like there is a change in the DMPlexCreateSubMesh
> interface.
>
> My code was running fine with petsc 3.4.3 but when i switched petsc to
> next. I am getting runtime error due to DMPlexCreateSubMesh..
>
> The interface changed from:
> (
> http://www.mcs.anl.gov/petsc/petsccurrent/src/dm/impls/plex/plexsubmesh.c.html#DMPlexCreateSubmesh
> )
>
> 2087: *PetscErrorCode <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode> DMPlexCreateSubmesh <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMPlexCreateSubmesh.html#DMPlexCreateSubmesh>(DM dm, const char vertexLabel[], PetscInt <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt> value, DM *subdm)*
>
>
> to
> (
> https://bitbucket.org/petsc/petsc/src/1d94116c89ca7d6e640482ce2684b8b52bac7dff/src/dm/impls/plex/plexsubmesh.c?at=next#cl-2468
> )
>
> PetscErrorCode DMPlexCreateSubmesh(DM dm, DMLabel vertexLabel, PetscInt value, DM *subdm)
>
>
> How should i change my code to make use of the new interface ? I have had issue using DMLabel related function from my fortran code.
>
>
Okay, we should just fix using DMLabel in Fortran. I will write the binding
for DMPlexGetLabel(), and I will
define the necessary DMLabel stuff for Fortran. I will mail when its pushed.

  Matt


> Thanks
> Reddy
> --
> -----------------------------------------------------
> Dharmendar Reddy Palle
> Graduate Student
> Microelectronics Research center,
> University of Texas at Austin,
> 10100 Burnet Road, Bldg. 160
> MER 2.608F, TX 78758-4445
> e-mail: dharmareddy84 at gmail.com
> Phone: +1-512-350-9082
> United States of America.
> Homepage: https://webspace.utexas.edu/~dpr342
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131114/a02fc287/attachment.html>


More information about the petsc-users mailing list