libMesh
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
parallel_hilbert.h File Reference

Go to the source code of this file.

Classes

class  TIMPI::StandardType< Hilbert::HilbertIndices >
 

Namespaces

namespace  TIMPI
 
namespace  libMesh
 The libMesh namespace provides an interface to certain functionality in the library.
 
namespace  libMesh::Parallel
 
namespace  Hilbert
 

Typedefs

typedef std::pair< Hilbert::HilbertIndices, unique_id_typelibMesh::Parallel::DofObjectKey
 

Functions

std::ostream & Hilbert::operator<< (std::ostream &os, const libMesh::Parallel::DofObjectKey &hilbert_pair)
 
void dofobjectkey_max_op (libMesh::Parallel::DofObjectKey *in, libMesh::Parallel::DofObjectKey *inout, int *len, void *)
 
void dofobjectkey_min_op (libMesh::Parallel::DofObjectKey *in, libMesh::Parallel::DofObjectKey *inout, int *len, void *)
 

Function Documentation

◆ dofobjectkey_max_op()

void dofobjectkey_max_op ( libMesh::Parallel::DofObjectKey in,
libMesh::Parallel::DofObjectKey inout,
int len,
void *   
)
inline

Definition at line 112 of file parallel_hilbert.h.

115{
116 // When (*in <= *inout), then inout already contains max(*in,*inout)
117 // Otherwise we need to copy from in.
118 for (int i=0; i<*len; i++, in++, inout++)
119 if (*inout < *in)
120 *inout = *in;
121}

Referenced by libMesh::Parallel::Sort< KeyType, IdxType >::binsort().

◆ dofobjectkey_min_op()

void dofobjectkey_min_op ( libMesh::Parallel::DofObjectKey in,
libMesh::Parallel::DofObjectKey inout,
int len,
void *   
)
inline

Definition at line 124 of file parallel_hilbert.h.

127{
128 // When (*in >= *inout), then inout already contains min(*in,*inout)
129 // Otherwise we need to copy from in.
130 for (int i=0; i<*len; i++, in++, inout++)
131 if (*in < *inout)
132 *inout = *in;
133}

Referenced by libMesh::Parallel::Sort< KeyType, IdxType >::binsort().