Skip to content

Commit 412e918

Browse files
committed
Update assign_elm_nodes mapping
As per discussion in #3337
1 parent db05ce9 commit 412e918

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/mesh/tetgen_io.C

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,9 @@ void TetGenIO::element_in (std::istream & ele_stream)
206206
libmesh_error_msg_if(region_attribute > 1,
207207
"Invalid region_attribute " << region_attribute << " specified in .ele file.");
208208

209-
// Vector that assigns element nodes to their correct position.
210-
// TetGen is normally 0-based
211-
// (right now this is strictly not necessary since it is the identity map,
212-
// but in the future TetGen could change their numbering scheme.)
213-
static const unsigned int assign_elm_nodes[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
209+
// Vector that maps Tetgen node numbering to libMesh node numbering. Tet4s are
210+
// numbered identically, but Tet10s are not.
211+
static const unsigned int assign_elm_nodes[] = {0, 1, 2, 3, 9, 7, 4, 5, 8, 6};
214212

215213
for (dof_id_type i=0; i<_num_elements; i++)
216214
{

0 commit comments

Comments
 (0)