diff --git a/src/mesh/X3D_Draco_Mesh_Reader.cc b/src/mesh/X3D_Draco_Mesh_Reader.cc index 24f42f665..dc049b432 100644 --- a/src/mesh/X3D_Draco_Mesh_Reader.cc +++ b/src/mesh/X3D_Draco_Mesh_Reader.cc @@ -389,7 +389,7 @@ void X3D_Draco_Mesh_Reader::read_bdy_files() { std::sort(flag_node_vec.begin(), flag_node_vec.end()); // find the mesh faces that have nodes in this flags set - for (auto face_nodes : x3d_facenode_map) { + for (auto const &face_nodes : x3d_facenode_map) { // sort vector of nodes associated with this face std::vector fnode_vec = get_facenodes(face_nodes.first); @@ -406,7 +406,8 @@ void X3D_Draco_Mesh_Reader::read_bdy_files() { if (nodes_in_common == fnode_vec) { // add to the side-node map - x3d_sidenode_map.insert(std::pair>(num_side, fnode_vec)); + x3d_sidenode_map.insert( + std::pair>(num_side, get_facenodes(face_nodes.first))); // add to the side-flag map x3d_sideflag_map.insert(std::pair(num_side, flag_key)); diff --git a/src/mesh/test/tstX3D_Draco_Mesh_Reader.cc b/src/mesh/test/tstX3D_Draco_Mesh_Reader.cc index c27da5536..6b13d519a 100644 --- a/src/mesh/test/tstX3D_Draco_Mesh_Reader.cc +++ b/src/mesh/test/tstX3D_Draco_Mesh_Reader.cc @@ -66,7 +66,7 @@ void read_x3d_mesh_2d(rtt_c4::ParallelUnitTest &ut) { FAIL_IF_NOT(x3d_reader->get_numsides() == 4); - std::vector> test_sidenodes = {{0, 1}, {1, 3}, {2, 3}, {0, 2}}; + std::vector> test_sidenodes = {{0, 1}, {1, 3}, {3, 2}, {2, 0}}; // check each side's data for (int side = 0; side < 4; ++side) {