60                            "--enable-petsc, --enable-trilinos, or --enable-eigen");
    63   GetPot infile(
"vector_fe_ex3.in");
    66   infile.parse_command_line(argc, argv);
    69   const unsigned int grid_size = infile(
"grid_size", 2);
    72   libmesh_example_requires(2 <= LIBMESH_DIM, 
"2D support");
    81   const std::string elem_str = infile(
"element_type", std::string(
"TRI6"));
    83   libmesh_error_msg_if(elem_str != 
"TRI6" && elem_str != 
"TRI7" && elem_str != 
"QUAD8" && elem_str != 
"QUAD9",
    84                        "You selected: " << elem_str <<
    85                        " but this example must be run with TRI6, TRI7, QUAD8, or QUAD9.");
    92                                        Utility::string_to_enum<ElemType>(elem_str));
    97 #ifdef LIBMESH_ENABLE_AMR   100   mesh_refinement.uniformly_refine(infile(
"refine", 0));
   106   const Real phi = infile(
"phi", 0.), theta = infile(
"theta", 0.), psi = infile(
"psi", 0.);
   120   const Order order = 
static_cast<Order>(infile(
"order", 1u));
   122   libmesh_error_msg_if(order < FIRST || order > 
FIFTH,
   123                        "You selected: " << order <<
   124                        " but this example must be run with 1 <= order <= 5.");
   129   system.
time_solver = std::make_unique<SteadySolver>(system);
   132   equation_systems.init();
   136   solver.
quiet = infile(
"solver_quiet", 
true);
   148   equation_systems.print_info();
   159   std::vector<FunctionBase<Number> *> sols(1, &soln_func);
   160   std::vector<FunctionBase<Gradient> *> grads(1, &soln_grad);
   162   exact_sol.attach_exact_values(sols);
   163   exact_sol.attach_exact_derivs(grads);
   166   int extra_error_quadrature = infile(
"extra_error_quadrature", 2);
   167   exact_sol.extra_quadrature_order(extra_error_quadrature);
   170   exact_sol.compute_error(
"CurlCurl", 
"u");
   174                << exact_sol.l2_error(
"CurlCurl", 
"u")
   180                << exact_sol.hcurl_error(
"CurlCurl", 
"u")
   183 #ifdef LIBMESH_HAVE_EXODUS_API   188 #endif // #ifdef LIBMESH_HAVE_EXODUS_API This class handles the computation of the L2 and/or H1 error for the Systems in the EquationSystems o...
This is the EquationSystems class. 
Order
defines an enum for polynomial orders. 
bool quiet
The DiffSolver should not print anything to libMesh::out unless quiet is set to false; default is tru...
The ExodusII_IO class implements reading meshes in the ExodusII file format from Sandia National Labs...
unsigned int max_nonlinear_iterations
The DiffSolver should exit in failure if max_nonlinear_iterations is exceeded and continue_after_max_...
Real absolute_residual_tolerance
The DiffSolver should exit after the residual is reduced to either less than absolute_residual_tolera...
std::unique_ptr< TimeSolver > time_solver
A pointer to the solver object we're going to use. 
The LibMeshInit class, when constructed, initializes the dependent libraries (e.g. 
static void RM(RealTensor T)
unsigned int variable_number(std::string_view var) const
SolverPackage default_solver_package()
This is a generic class that defines a solver to handle ImplicitSystem classes, including NonlinearIm...
Implements (adaptive) mesh refinement algorithms for a MeshBase. 
unsigned int max_linear_iterations
Each linear solver step should exit after max_linear_iterations is exceeded. 
virtual void write_equation_systems(const std::string &fname, const EquationSystems &es, const std::set< std::string > *system_names=nullptr) override
Writes out the solution for no specific time or timestep. 
void print_info(std::ostream &os=libMesh::out, const unsigned int verbosity=0, const bool global=true) const
Prints relevant information about the mesh. 
void init(triangulateio &t)
Initializes the fields of t to nullptr/0 as necessary. 
FEMSystem, TimeSolver and NewtonSolver will handle most tasks, but we must specify element residuals...
bool verbose
The DiffSolver may print a lot more to libMesh::out if verbose is set to true; default is false...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void solve() override
Invokes the solver associated with the system. 
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default. 
double initial_linear_tolerance
Any required linear solves will at first be done with this tolerance; the DiffSolver may tighten the ...
Real relative_residual_tolerance
Real relative_step_tolerance
void order(const Order &order)