Hi All,

I am trying to clone a mesh so I can remesh the clone and transfer the
solution from the original mesh to the new one. (is that the best way to
do??)
I am seeing a segmentation fault while calling 'ghosting functors' inside
'prepare_for_use'.
(I do have 'coupling functors' attached to the original System.)
I believe it should work ... Do you agree?

Please take a look at the error below.

>> std::unique_ptr<MeshBase> mesh = _old_es->get_mesh().clone();

------
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2adbabc in libMesh::MeshBase::prepare_for_use
(this=0x555555c77290, skip_renumber_nodes_and_elements=false,
skip_find_neighbors=true) at src/mesh/mesh_base.C:302
302           gf->mesh_reinit();
(gdb) bt
#0  0x00007ffff2adbabc in libMesh::MeshBase::prepare_for_use
(this=0x555555c77290, skip_renumber_nodes_and_elements=false,
skip_find_neighbors=true) at src/mesh/mesh_base.C:302
#1  0x00007ffff2d6b075 in
libMesh::UnstructuredMesh::copy_nodes_and_elements (this=0x555555c77290,
other_mesh=..., skip_find_neighbors=true, element_id_offset=0,
node_id_offset=0)
    at src/mesh/unstructured_mesh.C:218
#2  0x00007ffff2d46825 in libMesh::ReplicatedMesh::ReplicatedMesh
(this=0x555555c77290, other_mesh=...) at src/mesh/replicated_mesh.C:110
#3  0x0000555555667104 in std::make_unique<libMesh::ReplicatedMesh,
libMesh::ReplicatedMesh const&> () at
/usr/include/c++/7/bits/unique_ptr.h:825
#4  libMesh::ReplicatedMesh::clone (this=0x7fffffffcb20) at
/usr/local/include/libmesh/replicated_mesh.h:86
#5  chimas_clib::Chimas::move_tip (this=0x7fffffffd000, dist=5) at
../../../src/clib/chimas_clib/Chimas.cxx:427
-----

rgds,
Renato

_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to