On Wed, Jun 29, 2016 at 11:04 AM, Paul T. Bauman <ptbau...@gmail.com> wrote:

> On Wed, Jun 29, 2016 at 12:00 PM, Junchao Zhang <junchao.zh...@gmail.com>
> wrote:
>
>> I usually dump a mesh into a GMVIO file and then view it with ParaView.
>>
>
> Huh. I didn't know ParaView could read output from GMVIO. TIL.
>
>
>> Suppose I find a cell is weird and want to examine it in debugger. I can
>> get the cell ID in ParaView, which I guess is a sequential number for
>> active elements. Then, how can I locate the cell (get the pointer to it)
>> in
>> debugger? Suppose we use ReplicatedMesh.
>>
>
> Break anywhere you have access to the mesh. Then (assuming gdb syntax):
>
> p *(mesh->elem(elem_id))
>
> I guess elem_id is for all elements.  However, in ParaView, I can only get
sequential IDs for active elements.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to