[petsc-users] DMPlexCreateSubMesh

Matthew Knepley knepley at gmail.com
Fri Nov 15 09:01:29 CST 2013


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

> Thanks a lot.
>

Okay, I have pushed it and put in a test at
src/dm/impls/plex/examples/tutorials/ex1f90.F

I needed to update 'bfort' which makes the Fortran bindings. The easiest
thing to do is grab it from
githubg (petsc/pkg-sowing) and install into your PETSC_ARCH. I will ask
Satish to remake the
tarball, so if your install does not work you can just reconfigure after
deleting externalpackage/sowing-*
and PETSC_ARCH/conf/sowing.

  Thanks,

     Matt


> Reddy
>
>
> On Thu, Nov 14, 2013 at 3:10 PM, Matthew Knepley <knepley at gmail.com>wrote:
>
>> 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
>>
>
>
>
> --
> -----------------------------------------------------
> 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/20131115/2cf5b9d7/attachment.html>


More information about the petsc-users mailing list