#include <iostream>
#include <cassert>
#include <sstream>
#include <algorithm>
#include "moab/ZoltanPartitioner.hpp"
#include "moab/Interface.hpp"
#include "Internals.hpp"
#include "moab/Range.hpp"
#include "moab/WriteUtilIface.hpp"
#include "moab/MeshTopoUtil.hpp"
#include "MBTagConventions.hpp"
#include "moab/CN.hpp"
#include "moab/IntxMesh/IntxUtils.hpp"
Go to the source code of this file.
Macros | |
#define | RR if( MB_SUCCESS != result ) return result |
Functions | |
int | mbGetNumberOfAssignedObjects (void *, int *err) |
void | mbGetObjectList (void *, int, int, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int wgt_dim, float *obj_wgts, int *err) |
int | mbGetObjectSize (void *, int *err) |
void | mbGetObject (void *, int, int, int numObjs, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR lids, int numDim, double *pts, int *err) |
void | mbGetNumberOfEdges (void *, int, int, int numObjs, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR lids, int *numEdges, int *err) |
void | mbGetEdgeList (void *, int, int, int numObjs, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR lids, int *, ZOLTAN_ID_PTR nborGlobalIds, int *nborProcs, int wgt_dim, float *edge_wgts, int *err) |
void | mbGetPart (void *, int, int, int numObjs, ZOLTAN_ID_PTR, ZOLTAN_ID_PTR lids, int *part, int *err) |
Variables | |
static double * | Points = NULL |
static int * | GlobalIds = NULL |
static int | NumPoints = 0 |
static int * | NumEdges = NULL |
static int * | NborGlobalId = NULL |
static int * | NborProcs = NULL |
static double * | ObjWeights = NULL |
static double * | EdgeWeights = NULL |
static int * | Parts = NULL |
const bool | debug = false |
#define RR if( MB_SUCCESS != result ) return result |
Definition at line 41 of file ZoltanPartitioner.cpp.
void mbGetEdgeList | ( | void * | userDefinedData, |
int | numGlobalIds, | ||
int | numLids, | ||
int | numObjs, | ||
ZOLTAN_ID_PTR | gids, | ||
ZOLTAN_ID_PTR | lids, | ||
int * | numEdges, | ||
ZOLTAN_ID_PTR | nborGlobalIds, | ||
int * | nborProcs, | ||
int | wgt_dim, | ||
float * | edge_wgts, | ||
int * | err | ||
) |
Definition at line 1476 of file ZoltanPartitioner.cpp.
References EdgeWeights, NborGlobalId, NborProcs, NumEdges, and NumPoints.
Referenced by ZoltanPartitioner::balance_mesh(), ZoltanPartitioner::partition_mesh_and_geometry(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
int mbGetNumberOfAssignedObjects | ( | void * | userDefinedData, |
int * | err | ||
) |
MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.
Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Zoltan: class to get a mesh from MOAB and write a Zoltan partition set for that mesh back into MOAB and to a file
Definition at line 1382 of file ZoltanPartitioner.cpp.
References NumPoints.
Referenced by ZoltanPartitioner::balance_mesh(), ZoltanPartitioner::partition_mesh_and_geometry(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
void mbGetNumberOfEdges | ( | void * | userDefinedData, |
int | numGlobalIds, | ||
int | numLids, | ||
int | numObjs, | ||
ZOLTAN_ID_PTR | gids, | ||
ZOLTAN_ID_PTR | lids, | ||
int * | numEdges, | ||
int * | err | ||
) |
Definition at line 1450 of file ZoltanPartitioner.cpp.
References NumEdges, and NumPoints.
Referenced by ZoltanPartitioner::balance_mesh(), ZoltanPartitioner::partition_mesh_and_geometry(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
void mbGetObject | ( | void * | userDefinedData, |
int | numGlobalIds, | ||
int | numLids, | ||
int | numObjs, | ||
ZOLTAN_ID_PTR | gids, | ||
ZOLTAN_ID_PTR | lids, | ||
int | numDim, | ||
double * | pts, | ||
int * | err | ||
) |
Definition at line 1413 of file ZoltanPartitioner.cpp.
References NumPoints, and Points.
Referenced by ZoltanPartitioner::balance_mesh(), ZoltanPartitioner::partition_mesh_and_geometry(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
void mbGetObjectList | ( | void * | userDefinedData, |
int | numGlobalIds, | ||
int | numLids, | ||
ZOLTAN_ID_PTR | gids, | ||
ZOLTAN_ID_PTR | lids, | ||
int | wgt_dim, | ||
float * | obj_wgts, | ||
int * | err | ||
) |
Definition at line 1388 of file ZoltanPartitioner.cpp.
References GlobalIds, NumPoints, and ObjWeights.
Referenced by ZoltanPartitioner::balance_mesh(), ZoltanPartitioner::partition_mesh_and_geometry(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
int mbGetObjectSize | ( | void * | userDefinedData, |
int * | err | ||
) |
Definition at line 1407 of file ZoltanPartitioner.cpp.
Referenced by ZoltanPartitioner::balance_mesh(), ZoltanPartitioner::partition_mesh_and_geometry(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
void mbGetPart | ( | void * | userDefinedData, |
int | numGlobalIds, | ||
int | numLids, | ||
int | numObjs, | ||
ZOLTAN_ID_PTR | gids, | ||
ZOLTAN_ID_PTR | lids, | ||
int * | part, | ||
int * | err | ||
) |
Definition at line 1518 of file ZoltanPartitioner.cpp.
References NumPoints, and Parts.
Referenced by ZoltanPartitioner::partition_mesh_and_geometry().
const bool debug = false |
Definition at line 54 of file ZoltanPartitioner.cpp.
Referenced by ZoltanPartitioner::assemble_graph().
|
static |
Definition at line 51 of file ZoltanPartitioner.cpp.
Referenced by mbGetEdgeList(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 45 of file ZoltanPartitioner.cpp.
Referenced by mbGetObjectList(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 48 of file ZoltanPartitioner.cpp.
Referenced by mbGetEdgeList(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 49 of file ZoltanPartitioner.cpp.
Referenced by mbGetEdgeList(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 47 of file ZoltanPartitioner.cpp.
Referenced by mbGetEdgeList(), mbGetNumberOfEdges(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 46 of file ZoltanPartitioner.cpp.
Referenced by ZoltanPartitioner::mbFinalizePoints(), mbGetEdgeList(), mbGetNumberOfAssignedObjects(), mbGetNumberOfEdges(), mbGetObject(), mbGetObjectList(), mbGetPart(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 50 of file ZoltanPartitioner.cpp.
Referenced by mbGetObjectList(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 52 of file ZoltanPartitioner.cpp.
Referenced by mbGetPart(), ZoltanPartitioner::mbInitializePoints(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().
|
static |
Definition at line 44 of file ZoltanPartitioner.cpp.
Referenced by mbGetObject(), ZoltanPartitioner::mbInitializePoints(), moab::element_utility::Parametrizer::operator()(), moab::element_utility::Element_parametrizer< Element_map >::operator()(), ZoltanPartitioner::partition_owned_cells(), ZoltanPartitioner::repartition(), and ZoltanPartitioner::repartition_to_procs().