MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include "ParallelHelper.hpp"
#include <mpi.h>
#include <cstdio>
#include <cassert>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <ctime>
#include "MsqVertex.hpp"
#include "MsqError.hpp"
Go to the source code of this file.
Classes | |
struct | MBMesquite::VertexPack |
Namespaces | |
namespace | MBMesquite |
Implements the NonSmoothDescent class member functions. | |
Defines | |
#define | VERTEX_HEADER 1 |
#define | VERTEX_BLOCK 1000 |
#define | GHOST_NODE_INFO 2000 |
#define | GHOST_NODE_VERTICES_WANTED 2001 |
#define | GHOST_NODE_VERTEX_GIDS 2002 |
#define | GHOST_NODE_VERTEX_UPDATES 2003 |
#define | ARRPTR(x) arrptr( x, true ) |
#define | CHECK_MPI(RVAL, ERR) |
#define | CHECK_MPI_RZERO(RVAL, ERR) |
Typedefs | |
typedef struct MBMesquite::VertexPack | MBMesquite::VertexPack |
Functions | |
void | MBMesquite::parallel_barrier () |
int | MBMesquite::get_parallel_rank () |
int | MBMesquite::get_parallel_size () |
double | MBMesquite::reduce_parallel_max (double value) |
static const char * | MBMesquite::mpi_err_string (int error_code) |
static bool | MBMesquite::vertex_map_insert (VertexIdMap &map, size_t glob_id, int proc_id, int value) |
static int | MBMesquite::vertex_map_find (const VertexIdMap &map, size_t glob_id, int proc_id) |
static void | MBMesquite::my_quicksort (int *a, size_t *b, MBMesquite::Mesh::VertexHandle *c, int i, int j) |
static int | MBMesquite::hash6432shift (unsigned long long key) |
static unsigned long long | MBMesquite::hash64shift (unsigned long long key) |
static double | MBMesquite::generate_random_number (int generate_random_numbers, int proc_id, size_t glob_id) |
#define ARRPTR | ( | x | ) | arrptr( x, true ) |
Definition at line 22 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb_no_all(), MBMesquite::ParallelHelperImpl::is_our_element(), MBMesquite::ParallelHelperImpl::smoothing_close(), and MBMesquite::ParallelHelperImpl::smoothing_init().
#define CHECK_MPI | ( | RVAL, | |
ERR | |||
) |
do \ { \ if( MPI_SUCCESS != ( RVAL ) ) \ { \ MSQ_SETERR( err ) \ ( MsqError::UNKNOWN_ERROR, "MPI Error %d: %s", (int)( RVAL ), mpi_err_string( ( RVAL ) ) ); \ return; \ } \ } while( false )
Definition at line 83 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::communicate_all_true(), MBMesquite::ParallelHelperImpl::communicate_any_true(), MBMesquite::ParallelHelperImpl::communicate_histogram_to_zero(), MBMesquite::ParallelHelperImpl::communicate_min_max_to_all(), MBMesquite::ParallelHelperImpl::communicate_min_max_to_zero(), MBMesquite::ParallelHelperImpl::communicate_next_independent_set(), MBMesquite::ParallelHelperImpl::communicate_power_sum_to_zero(), MBMesquite::ParallelHelperImpl::communicate_sums_to_zero(), MBMesquite::ParallelHelperImpl::smoothing_close(), and MBMesquite::ParallelHelperImpl::smoothing_init().
#define CHECK_MPI_RZERO | ( | RVAL, | |
ERR | |||
) |
do \ { \ if( MPI_SUCCESS != ( RVAL ) ) \ { \ MSQ_SETERR( err ) \ ( MsqError::UNKNOWN_ERROR, "MPI Error %d: %s", (int)( RVAL ), mpi_err_string( ( RVAL ) ) ); \ return 0; \ } \ } while( false )
Definition at line 94 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb(), and MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb_no_all().
#define GHOST_NODE_INFO 2000 |
Definition at line 17 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::smoothing_init().
#define GHOST_NODE_VERTEX_GIDS 2002 |
Definition at line 19 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::smoothing_init().
#define GHOST_NODE_VERTEX_UPDATES 2003 |
Definition at line 20 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::smoothing_close().
#define GHOST_NODE_VERTICES_WANTED 2001 |
Definition at line 18 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::smoothing_init().
#define VERTEX_BLOCK 1000 |
Definition at line 16 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb(), and MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb_no_all().
#define VERTEX_HEADER 1 |
Definition at line 15 of file ParallelHelper.cpp.
Referenced by MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_b_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_nb_no_all(), MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb(), and MBMesquite::ParallelHelperImpl::comm_smoothed_vtx_tnb_no_all().