Go to the source code of this file.
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 52 of file meshnorm.C.
   60                << 
" mesh solution" << std::endl;
 
   68   es.read(argv[2], EquationSystems::READ_HEADER |
 
   69           EquationSystems::READ_DATA |
 
   70           EquationSystems::READ_ADDITIONAL_DATA |
 
   71           EquationSystems::READ_BASIC_ONLY);
 
   72   libMesh::out << 
"Loaded solution " << argv[2] << std::endl;
 
   77   for (
unsigned int i = 0; i != es.n_systems(); ++i)
 
   79       System & sys = es.get_system(i);
 
   82       for (
unsigned int j = 0; j != sys.
n_vectors(); ++j)
 
 
References libMesh::System::get_vector(), libMesh::TriangleWrapper::init(), mesh, libMesh::System::n_vectors(), libMesh::out, output_norms(), libMesh::BasicOStreamProxy< charT, traits >::precision(), libMesh::MeshBase::print_info(), libMesh::MeshBase::read(), libMesh::EquationSystems::READ_ADDITIONAL_DATA, libMesh::EquationSystems::READ_BASIC_ONLY, libMesh::EquationSystems::READ_DATA, libMesh::EquationSystems::READ_HEADER, libMesh::System::solution, and libMesh::System::vector_name().
 
 
◆ output_norms()
      
        
          | void output_norms  | 
          ( | 
          const System &  | 
          sys,  | 
        
        
           | 
           | 
          const NumericVector< Number > &  | 
          vec,  | 
        
        
           | 
           | 
          const std::string &  | 
          vecname  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 29 of file meshnorm.C.
   31   for (
unsigned int k = 0; k != sys.
n_vars(); ++k)
 
   34         ", vector " << vecname <<
 
 
References libMesh::System::calculate_norm(), libMesh::DISCRETE_L1, libMesh::DISCRETE_L2, libMesh::DISCRETE_L_INF, libMesh::H1, libMesh::H1_SEMINORM, libMesh::L1, libMesh::L2, libMesh::L_INF, libMesh::System::n_vars(), libMesh::System::name(), libMesh::out, libMesh::Real, and libMesh::System::variable_name().
Referenced by main().
 
 
 
Manages consistently variables, degrees of freedom, and coefficient vectors.
 
unsigned int n_vars() const
 
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
 
virtual void read(const std::string &name, void *mesh_data=nullptr, bool skip_renumber_nodes_and_elements=false, bool skip_find_neighbors=false)=0
Interfaces for reading/writing a mesh to/from a file.
 
const std::string & variable_name(const unsigned int i) const
 
unsigned int n_vectors() const
 
const std::string & vector_name(const unsigned int vec_num) const
 
void init(triangulateio &t)
Initializes the fields of t to nullptr/0 as necessary.
 
void output_norms(const System &sys, const NumericVector< Number > &vec, const std::string &vecname)
 
The LibMeshInit class, when constructed, initializes the dependent libraries (e.g.
 
This is the EquationSystems class.
 
std::unique_ptr< NumericVector< Number > > solution
Data structure to hold solution values.
 
const std::string & name() const
 
void print_info(std::ostream &os=libMesh::out) const
Prints relevant information about the mesh.
 
std::streamsize precision() const
Get the associated write precision.
 
Real calculate_norm(const NumericVector< Number > &v, unsigned int var, FEMNormType norm_type, std::set< unsigned int > *skip_dimensions=nullptr) const
 
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
 
const NumericVector< Number > & get_vector(const std::string &vec_name) const