MFEM v4.9.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::Ordering Class Reference

The ordering method used when the number of unknowns per mesh node (vector dimension) is bigger than 1. More...

#include <ordering.hpp>

Public Types

enum  Type { byNODES , byVDIM }
 Ordering methods: More...
 

Static Public Member Functions

template<Type Ord>
static int Map (int ndofs, int vdim, int dof, int vd)
 
template<Type Ord>
static void DofsToVDofs (int ndofs, int vdim, Array< int > &dofs)
 
static void Reorder (Vector &v, int vdim, Type in_ord, Type out_ord)
 Reorder Vector v from its current ordering in_ord to out_ord.
 

Detailed Description

The ordering method used when the number of unknowns per mesh node (vector dimension) is bigger than 1.

Definition at line 12 of file ordering.hpp.

Member Enumeration Documentation

◆ Type

Ordering methods:

Enumerator
byNODES 

loop first over the nodes (inner loop) then over the vector dimension (outer loop); symbolically it can be represented as: XXX...,YYY...,ZZZ...

byVDIM 

loop first over the vector dimension (inner loop) then over the nodes (outer loop); symbolically it can be represented as: XYZ,XYZ,XYZ,...

Definition at line 16 of file ordering.hpp.

Member Function Documentation

◆ DofsToVDofs()

template<Type Ord>
static void mfem::Ordering::DofsToVDofs ( int ndofs,
int vdim,
Array< int > & dofs )
static

◆ Map()

template<Type Ord>
static int mfem::Ordering::Map ( int ndofs,
int vdim,
int dof,
int vd )
inlinestatic

◆ Reorder()

void mfem::Ordering::Reorder ( Vector & v,
int vdim,
Ordering::Type in_ord,
Ordering::Type out_ord )
static

Reorder Vector v from its current ordering in_ord to out_ord.

Definition at line 38 of file ordering.cpp.


The documentation for this class was generated from the following files: