[petsc-users] vtkviewer with cloned dm

Matthew Knepley knepley at gmail.com
Thu May 9 10:24:42 CDT 2013


On Thu, May 9, 2013 at 10:17 AM, Dharmendar Reddy
<dharmareddy84 at gmail.com>wrote:

> Hello,
>            Looks like the fix created other issues. I am getting errors
> from DMPlecCreateBoxMesh. I have attached the test code and error log
>

DMSetCoordinates() does not like NULL. I pushed the fix.

   Matt


> On Thu, May 9, 2013 at 6:56 AM, Matthew Knepley <knepley at gmail.com> wrote:
>
>> On Thu, May 9, 2013 at 6:52 AM, Dharmendar Reddy <dharmareddy84 at gmail.com
>> > wrote:
>>
>>>
>>>
>>>
>>> On Thu, May 9, 2013 at 6:46 AM, Matthew Knepley <knepley at gmail.com>wrote:
>>>
>>>> On Thu, May 9, 2013 at 6:33 AM, Dharmendar Reddy <
>>>> dharmareddy84 at gmail.com> wrote:
>>>>
>>>>> Hello,
>>>>>          Looks like the call
>>>>> DMGetCoordinatesLocal(clonedDM,coords,ierr) is giving a null coords Vec.
>>>>> DMView on clonedDM is printing the expected information
>>>>>
>>>>> Mesh in 2 dimensions:
>>>>>   0-cells: 9
>>>>>   1-cells: 16
>>>>>   2-cells: 8
>>>>> Labels:
>>>>>   marker: 2 strata of sizes (16, 5)
>>>>>   depth: 3 strata of sizes (9, 16, 8)
>>>>>
>>>>> the original dm is created using DMPlexCreateBoxMesh.
>>>>>
>>>>
>>>> The semantics for Clone have not been nailed down. I can copy over the
>>>> coordinates. I am not sure it will make
>>>> the release, but I will put it in next.
>>>>
>>>>  That will help for now. On a related note, when the parent dm is
>>> refined or distributed  does cloned dm also get refined or distributed or
>>> do we need to call the clone after refining or distributing the parent dm ?
>>>
>>
>> No. Here the model is clear, and I think its the right one. Distribution,
>> refinement, interpolation, etc. all create
>> a new DM, thus any clones are pointing at the old DM.
>>
>>   Matt
>>
>>
>>>
>>>
>>>>    Thanks,
>>>>
>>>>      Matt
>>>>
>>>>
>>>>>
>>>>> On Wed, May 8, 2013 at 8:21 PM, Dharmendar Reddy <
>>>>> dharmareddy84 at gmail.com> wrote:
>>>>>
>>>>>> Hello,
>>>>>>          I am seeing an error when i use vtkviewer with a cloned dm.
>>>>>> Am i doing some thing worng  ? Please see the attached test case.
>>>>>>
>>>>>> [0]PETSC ERROR: --------------------- Error Message
>>>>>> ----------------------------
>>>>>> --------
>>>>>> [0]PETSC ERROR: Null argument, when expecting valid pointer!
>>>>>> [0]PETSC ERROR: Null Object: Parameter # 1!
>>>>>> [0]PETSC ERROR:
>>>>>> ----------------------------------------------------------------
>>>>>> --------
>>>>>> [0]PETSC ERROR: Petsc Development GIT revision:
>>>>>> 2ba5cda9c63f067922ac725686fc49a5
>>>>>> 014f5bad  GIT Date: 2013-05-05 14:03:36 -0600
>>>>>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>>>>>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>>>>>> [0]PETSC ERROR: See docs/index.html for manual pages.
>>>>>> [0]PETSC ERROR:
>>>>>> ----------------------------------------------------------------
>>>>>> --------
>>>>>> [0]PETSC ERROR: ./testDMView on a mpi_rScalar_Debug named
>>>>>> login3.stampede.tacc.u
>>>>>> texas.edu by Reddy135 Wed May  8 19:53:42 2013
>>>>>> [0]PETSC ERROR: Libraries linked from
>>>>>> /home1/00924/Reddy135/LocalApps/petsc/mpi_
>>>>>> rScalar_Debug/lib
>>>>>> [0]PETSC ERROR: Configure run at Sun May  5 23:15:58 2013
>>>>>> [0]PETSC ERROR: Configure options   --download-blacs=1
>>>>>> --download-ctetgen=1 --do
>>>>>> wnload-metis=1 --download-mumps=1 --download-parmetis=1
>>>>>> --download-scalapack=1 -
>>>>>> -download-superlu_dist=1 --download-triangle=1 --download-umfpack=1
>>>>>> --with-blas-
>>>>>> lapack-dir=/opt/apps/intel/13/composer_xe_2013.2.146/mkl/lib/intel64/
>>>>>> --with-deb
>>>>>> ugging=1 --with-mpi-dir=/opt/apps/intel13/mvapich2/1.9/
>>>>>> --with-petsc-arch=mpi_rS
>>>>>> calar_Debug --with-petsc-dir=/home1/00924/Reddy135/LocalApps/petsc
>>>>>> PETSC_ARCH=mp
>>>>>> i_rScalar_Debug
>>>>>> [0]PETSC ERROR:
>>>>>> ----------------------------------------------------------------
>>>>>> --------
>>>>>> [0]PETSC ERROR: VecGetArrayRead() line 1488 in
>>>>>> /home1/00924/Reddy135/LocalApps/p
>>>>>> etsc/src/vec/vec/interface/rvector.c
>>>>>> [0]PETSC ERROR: DMPlexVTKWriteAll_VTU() line 300 in
>>>>>> /home1/00924/Reddy135/LocalA
>>>>>> pps/petsc/src/dm/impls/plex/plexvtu.c
>>>>>> [0]PETSC ERROR: DMPlexVTKWriteAll() line 606 in
>>>>>> /home1/00924/Reddy135/LocalApps/
>>>>>> petsc/src/dm/impls/plex/plexvtk.c
>>>>>> [0]PETSC ERROR: PetscViewerFlush_VTK() line 78 in
>>>>>> /home1/00924/Reddy135/LocalApp
>>>>>> s/petsc/src/sys/classes/viewer/impls/vtk/vtkv.c
>>>>>> [0]PETSC ERROR: PetscViewerFlush() line 30 in
>>>>>> /home1/00924/Reddy135/LocalApps/pe
>>>>>> tsc/src/sys/classes/viewer/interface/flush.c
>>>>>> [0]PETSC ERROR: PetscViewerDestroy() line 100 in
>>>>>> /home1/00924/Reddy135/LocalApps
>>>>>> /petsc/src/sys/classes/viewer/interface/view.c
>>>>>>
>>>>>> --
>>>>>> -----------------------------------------------------
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> -----------------------------------------------------
>>>>> 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
>>
>
>
>
> --
> -----------------------------------------------------
> 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/20130509/b87ef5a5/attachment.html>


More information about the petsc-users mailing list