On Mon, 4 Jun 2012, Kirk, Benjamin (JSC-EG311) wrote:

> ParallelMesh& pmesh = dynamic_cast<ParallelMesh&>(mesh);
> pmesh.libmesh_assert_valid_parallel_ids();
>
> Of course that will fail if you're not running with a parallel mesh.  I'm
> guessing Roy tested it with a parallel mesh and all was happy.

Oh hell, yes that's solely debugging code, yes it should fail on
SerialMesh, and yes I only tested it with ParallelMesh.

> I've changed the code to cast instead to a pointer.  If that fails it
> returns a NULL pointer instead of issuing a runtime exception.

No, just delete that code.  I actually fixed the bits being debugged
with it, it was just to track down precisely where things went wrong.

Thanks,
---
Roy

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to