Skip to content

Commit 2c8e7d0

Browse files
committed
Add option to refine the mesh in Vector FE Ex.3
1 parent 367fc0d commit 2c8e7d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/vector_fe/vector_fe_ex3/vector_fe_ex3.C

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "libmesh/mesh.h"
3232
#include "libmesh/mesh_generation.h"
3333
#include "libmesh/mesh_modification.h"
34+
#include "libmesh/mesh_refinement.h"
3435
#include "libmesh/exact_solution.h"
3536
#include "libmesh/string_to_enum.h"
3637
#include "libmesh/enum_solver_package.h"
@@ -91,6 +92,10 @@ int main (int argc, char ** argv)
9192
// Make sure the code is robust against nodal reorderings.
9293
MeshTools::Modification::permute_elements(mesh);
9394

95+
// Make sure the code is robust against mesh refinements.
96+
MeshRefinement mesh_refinement(mesh);
97+
mesh_refinement.uniformly_refine(infile("refine", 0));
98+
9499
// Print information about the mesh to the screen.
95100
mesh.print_info();
96101

0 commit comments

Comments
 (0)