Hello!
I’m using a PointLocatorTree to determinate the values of a parameter over a
mesh, and it’s causing a segmentation fault at the end of the program. I’m
using it inside a class with the code below:
class weight_parameter_function
{
protected:
// Members
libMesh::UniquePtr<libMesh::PointLocatorBase>
m_alpha_mask_point_locator_Ptr;
// [other parameters]
public:
// Constructor
weight_parameter_function( libMesh::Mesh& alpha_mesh) :
m_alpha_mask_point_locator_Ptr { NULL }
// [set up other parameters]
{
m_alpha_mask_point_locator_Ptr =
libMesh::PointLocatorBase::build(libMesh::TREE,alpha_mesh);
};
}
I’m using the default destructor for my object. If I try to reset the pointer
(like what is done for the MeshBase), I get a "pointer being freed was not
allocated” error, even if I can use the locator with no problems. What am I
doing wrong?
Thanks in advance,
Thiago Milanetto Schlittler
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users