MFEM  v4.5.2
Finite element discretization library
Classes | Functions
mfem::common Namespace Reference

Classes

class  DivergenceFreeProjector
 
class  ElementMeshStream
 
class  H1_FESpace
 
class  H1_ParFESpace
 
class  IrrotationalProjector
 
class  KershawTransformation
 
class  L2_ParFESpace
 
class  ND_FESpace
 
class  ND_ParFESpace
 
class  ParDiscreteCurlOperator
 
class  ParDiscreteDivOperator
 
class  ParDiscreteGradOperator
 
class  ParDiscreteInterpolationOperator
 
class  RT_FESpace
 
class  RT_ParFESpace
 

Functions

void VisualizeMesh (socketstream &sock, const char *vishost, int visport, Mesh &mesh, const char *title, int x, int y, int w, int h, const char *keys)
 
void VisualizeField (socketstream &sock, const char *vishost, int visport, GridFunction &gf, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
 
void MergeMeshNodes (Mesh *mesh, int logging)
 Merges vertices which lie at the same location. More...
 
void AttrToMarker (int max_attr, const Array< int > &attrs, Array< int > &marker)
 Convert a set of attribute numbers to a marker array. More...
 
void VisualizeMesh (socketstream &sock, const char *vishost, int visport, ParMesh &pmesh, const char *title, int x, int y, int w, int h, const char *keys)
 
void VisualizeField (socketstream &sock, const char *vishost, int visport, const ParGridFunction &gf, const char *title, int x, int y, int w, int h, const char *keys, bool vec)
 

Function Documentation

◆ AttrToMarker()

void mfem::common::AttrToMarker ( int  max_attr,
const Array< int > &  attrs,
Array< int > &  marker 
)

Convert a set of attribute numbers to a marker array.

The marker array will be of size max_attr and it will contain only zeroes and ones. Ones indicate which attribute numbers are present in the attrs array. In the special case when attrs has a single entry equal to -1 the marker array will contain all ones.

Definition at line 216 of file mesh_extras.cpp.

◆ MergeMeshNodes()

void mfem::common::MergeMeshNodes ( Mesh mesh,
int  logging 
)

Merges vertices which lie at the same location.

Definition at line 140 of file mesh_extras.cpp.

◆ VisualizeField() [1/2]

void mfem::common::VisualizeField ( socketstream sock,
const char *  vishost,
int  visport,
GridFunction gf,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL,
bool  vec = false 
)

Visualize the given grid function, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

Definition at line 92 of file fem_extras.cpp.

◆ VisualizeField() [2/2]

void mfem::common::VisualizeField ( socketstream sock,
const char *  vishost,
int  visport,
const ParGridFunction gf,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL,
bool  vec = false 
)

Visualize the given parallel grid function, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

Definition at line 310 of file pfem_extras.cpp.

◆ VisualizeMesh() [1/2]

void mfem::common::VisualizeMesh ( socketstream sock,
const char *  vishost,
int  visport,
Mesh mesh,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL 
)

Visualize the given mesh object, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

Definition at line 59 of file fem_extras.cpp.

◆ VisualizeMesh() [2/2]

void mfem::common::VisualizeMesh ( socketstream sock,
const char *  vishost,
int  visport,
ParMesh pmesh,
const char *  title,
int  x = 0,
int  y = 0,
int  w = 400,
int  h = 400,
const char *  keys = NULL 
)

Visualize the given parallel mesh object, using a GLVis server on the specified host and port. Set the visualization window title, and optionally, its geometry.

Definition at line 264 of file pfem_extras.cpp.