On Tue, 3 Dec 2013, David Knezevic wrote:

> I'd like to write some selected elements from a mesh to disk, and to be
> able to read them in again later to reinitialize those elements. I don't
> need connectivity info, so the mesh IO classes seem like more than I
> need for this.
>
> I was wondering if there are any "helper functions" somewhere in the
> library that I could reuse for this?

Hmm... not deliberately.  UnstructuredMesh::copy_nodes_and_elements
would need to be refactored to take iterator ranges rather than a
whole mesh as an input, I guess.

Or if you wanted compatibility with existing libMesh, you could abuse
send/receive_packed_range: have each processor send the appropriate
ranges of elements and nodes to *itself* and insert them into a new
mesh.
---
Roy

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to