22#include "libmesh/libmesh.h"
23#include "libmesh/mesh.h"
24#include "libmesh/equation_systems.h"
25#include "libmesh/enum_norm_type.h"
31 for (
unsigned int k = 0; k != sys.
n_vars(); ++k)
34 ", vector " << vecname <<
52int main(
int argc,
char ** argv)
60 <<
" mesh solution" << std::endl;
72 libMesh::out <<
"Loaded solution " << argv[2] << std::endl;
77 for (
unsigned int i = 0; i != es.
n_systems(); ++i)
82 for (
unsigned int j = 0; j != sys.
n_vectors(); ++j)
std::streamsize precision() const
Get the associated write precision.
This is the EquationSystems class.
void print_info(std::ostream &os=libMesh::out) const
Prints information about the equation systems, by default to libMesh::out.
unsigned int n_systems() const
void read(std::string_view name, const XdrMODE, const unsigned int read_flags=(READ_HEADER|READ_DATA), bool partition_agnostic=true)
Read & initialize the systems from disk using the XDR data format.
const T_sys & get_system(std::string_view name) const
The LibMeshInit class, when constructed, initializes the dependent libraries (e.g.
virtual void read(const std::string &name, void *mesh_data=nullptr, bool skip_renumber_nodes_and_elements=false, bool skip_find_neighbors=false, bool skip_detect_interior_parents=false)=0
Interfaces for reading/writing a mesh to/from a file.
void print_info(std::ostream &os=libMesh::out, const unsigned int verbosity=0, const bool global=true) const
Prints relevant information about the mesh.
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
Provides a uniform interface to vector storage schemes for different linear algebra libraries.
Manages consistently variables, degrees of freedom, and coefficient vectors.
unsigned int n_vectors() const
const std::string & name() const
const std::string & vector_name(const unsigned int vec_num) const
std::unique_ptr< NumericVector< Number > > solution
Data structure to hold solution values.
const std::string & variable_name(const unsigned int i) const
Real calculate_norm(const NumericVector< Number > &v, unsigned int var, FEMNormType norm_type, std::set< unsigned int > *skip_dimensions=nullptr) const
unsigned int n_vars() const
const NumericVector< Number > & get_vector(std::string_view vec_name) const
void output_norms(const System &sys, const NumericVector< Number > &vec, const std::string &vecname)
The libMesh namespace provides an interface to certain functionality in the library.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real