parallel_hilbert.h File Reference

Go to the source code of this file.

Classes

class  libMesh::Parallel::StandardType< Hilbert::HilbertIndices >
 

Namespaces

 libMesh
 
 libMesh::Parallel
 
 Hilbert
 

Typedefs

typedef std::pair< Hilbert::HilbertIndices, unique_id_type > libMesh::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 103 of file parallel_hilbert.h.

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

106 {
107  // When (*in <= *inout), then inout already contains max(*in,*inout)
108  // Otherwise we need to copy from in.
109  for (int i=0; i<*len; i++, in++, inout++)
110  if (*inout < *in)
111  *inout = *in;
112 }

◆ dofobjectkey_min_op()

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

Definition at line 115 of file parallel_hilbert.h.

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

118 {
119  // When (*in >= *inout), then inout already contains min(*in,*inout)
120  // Otherwise we need to copy from in.
121  for (int i=0; i<*len; i++, in++, inout++)
122  if (*in < *inout)
123  *inout = *in;
124 }