We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88c2da5 commit 86515ceCopy full SHA for 86515ce
1 file changed
examples/vector_fe/vector_fe_ex6/vector_fe_ex6.C
@@ -31,9 +31,10 @@
31
// The solver packages supported by libMesh.
32
#include "libmesh/enum_solver_package.h"
33
34
-// The mesh object and mesh generation utilities.
+// The mesh object and mesh generation and modification utilities.
35
#include "libmesh/mesh.h"
36
#include "libmesh/mesh_generation.h"
37
+#include "libmesh/mesh_modification.h"
38
39
// Matrix and vector types.
40
#include "libmesh/dense_matrix.h"
@@ -131,6 +132,9 @@ int main (int argc, char ** argv)
131
132
-1., 1.,
133
Utility::string_to_enum<ElemType>(elem_str));
134
135
+ // Make sure the code is robust against nodal reorderings.
136
+ MeshTools::Modification::permute_elements(mesh);
137
+
138
// Print information about the mesh to the screen.
139
mesh.print_info();
140
0 commit comments