<div dir="ltr"><div><div>Hello,<br></div>         Looks like the call DMGetCoordinatesLocal(clonedDM,coords,ierr) is giving a null coords Vec. DMView on clonedDM is printing the expected information<br><br>Mesh in 2 dimensions:<br>
  0-cells: 9<br>  1-cells: 16<br>  2-cells: 8<br>Labels:<br>  marker: 2 strata of sizes (16, 5)<br>  depth: 3 strata of sizes (9, 16, 8)<br><br></div><div>the original dm is created using DMPlexCreateBoxMesh.  <br></div><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 8:21 PM, Dharmendar Reddy <span dir="ltr"><<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,<br></div>         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.<br>
<br>[0]PETSC ERROR: --------------------- Error Message ----------------------------<br>
--------<br>[0]PETSC ERROR: Null argument, when expecting valid pointer!<br>[0]PETSC ERROR: Null Object: Parameter # 1!<br>[0]PETSC ERROR: ----------------------------------------------------------------<br>--------<br>[0]PETSC ERROR: Petsc Development GIT revision: 2ba5cda9c63f067922ac725686fc49a5<br>

014f5bad  GIT Date: 2013-05-05 14:03:36 -0600<br>[0]PETSC ERROR: See docs/changes/index.html for recent updates.<br>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.<br>[0]PETSC ERROR: See docs/index.html for manual pages.<br>

[0]PETSC ERROR: ----------------------------------------------------------------<br>--------<br>[0]PETSC ERROR: ./testDMView on a mpi_rScalar_Debug named login3.stampede.tacc.u<br><a href="http://texas.edu" target="_blank">texas.edu</a> by Reddy135 Wed May  8 19:53:42 2013<br>

[0]PETSC ERROR: Libraries linked from /home1/00924/Reddy135/LocalApps/petsc/mpi_<br>rScalar_Debug/lib<br>[0]PETSC ERROR: Configure run at Sun May  5 23:15:58 2013<br>[0]PETSC ERROR: Configure options   --download-blacs=1 --download-ctetgen=1 --do<br>

wnload-metis=1 --download-mumps=1 --download-parmetis=1 --download-scalapack=1 -<br>-download-superlu_dist=1 --download-triangle=1 --download-umfpack=1 --with-blas-<br>lapack-dir=/opt/apps/intel/13/composer_xe_2013.2.146/mkl/lib/intel64/ --with-deb<br>

ugging=1 --with-mpi-dir=/opt/apps/intel13/mvapich2/1.9/ --with-petsc-arch=mpi_rS<br>calar_Debug --with-petsc-dir=/home1/00924/Reddy135/LocalApps/petsc PETSC_ARCH=mp<br>i_rScalar_Debug<br>[0]PETSC ERROR: ----------------------------------------------------------------<br>

--------<br>[0]PETSC ERROR: VecGetArrayRead() line 1488 in /home1/00924/Reddy135/LocalApps/p<br>etsc/src/vec/vec/interface/rvector.c<br>[0]PETSC ERROR: DMPlexVTKWriteAll_VTU() line 300 in /home1/00924/Reddy135/LocalA<br>
pps/petsc/src/dm/impls/plex/plexvtu.c<br>
[0]PETSC ERROR: DMPlexVTKWriteAll() line 606 in /home1/00924/Reddy135/LocalApps/<br>petsc/src/dm/impls/plex/plexvtk.c<br>[0]PETSC ERROR: PetscViewerFlush_VTK() line 78 in /home1/00924/Reddy135/LocalApp<br>s/petsc/src/sys/classes/viewer/impls/vtk/vtkv.c<br>

[0]PETSC ERROR: PetscViewerFlush() line 30 in /home1/00924/Reddy135/LocalApps/pe<br>tsc/src/sys/classes/viewer/interface/flush.c<br>[0]PETSC ERROR: PetscViewerDestroy() line 100 in /home1/00924/Reddy135/LocalApps<br>/petsc/src/sys/classes/viewer/interface/view.c<span class="HOEnZb"><font color="#888888"><br clear="all">

<div><div><br>-- <br>-----------------------------------------------------<br>Dharmendar Reddy Palle<br>Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>10100 Burnet Road, Bldg. 160<br>

MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a><br>Phone: <a href="tel:%2B1-512-350-9082" value="+15123509082" target="_blank">+1-512-350-9082</a><br>
United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>

</div></div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------<br>Dharmendar Reddy Palle<br>Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>
10100 Burnet Road, Bldg. 160<br>MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a><br>Phone: +1-512-350-9082<br>United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>

</div>