Skip to content

Commit 86515ce

Browse files
committed
Test nodal reordering in div-grad example
1 parent 88c2da5 commit 86515ce

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/vector_fe/vector_fe_ex6/vector_fe_ex6.C

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@
3131
// The solver packages supported by libMesh.
3232
#include "libmesh/enum_solver_package.h"
3333

34-
// The mesh object and mesh generation utilities.
34+
// The mesh object and mesh generation and modification utilities.
3535
#include "libmesh/mesh.h"
3636
#include "libmesh/mesh_generation.h"
37+
#include "libmesh/mesh_modification.h"
3738

3839
// Matrix and vector types.
3940
#include "libmesh/dense_matrix.h"
@@ -131,6 +132,9 @@ int main (int argc, char ** argv)
131132
-1., 1.,
132133
Utility::string_to_enum<ElemType>(elem_str));
133134

135+
// Make sure the code is robust against nodal reorderings.
136+
MeshTools::Modification::permute_elements(mesh);
137+
134138
// Print information about the mesh to the screen.
135139
mesh.print_info();
136140

0 commit comments

Comments
 (0)