libMesh
Classes | Namespaces | Typedefs | Functions
parallel_hilbert.h File Reference

Go to the source code of this file.

Classes

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

Namespaces

 libMesh
 The libMesh namespace provides an interface to certain functionality in the library.
 
 libMesh::Parallel
 The Parallel namespace is for wrapper functions for common general parallel synchronization tasks.
 
 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

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

Definition at line 104 of file parallel_hilbert.h.

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

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

Definition at line 116 of file parallel_hilbert.h.

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

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