From: Vijay S. M. <vi...@gm...> - 2008-08-11 18:24:27
|
Hi guys, I am working with mesh data to store some data and have been running in to problems in the debug mode on assertions. I create a mesh data object, associate it with a mesh and set data for each element using the methods: void MeshData::set_data(const Node *node, const std::vector< Number > & val) and void MeshData::set_data(const Elem *elem, const std::vector< Number > & val) But now, when I try to call get_data on MeshData, the assertion libmesh_assert (_elem_data_closed); fails in /libmesh/include/mesh/mesh_data.h, line 956. Of course, I'm out of ideas as to how to close() the mesh_data after setting the data for elems and nodes. Is there a simple call that would solve my problem or do I really have to call insert_node_data and insert_elem_data after building the entire array of data. IMO, the second method seems tedious and is a big requirement on the user part. Any ideas ? Vijay |