Chi-Tech
chi::KBAGraphPartitioner Class Reference

#include <KBAGraphPartitioner.h>

Inheritance diagram for chi::KBAGraphPartitioner:
chi::GraphPartitioner ChiObject

Data Structures

struct  CoordinateInfo
 

Public Member Functions

 KBAGraphPartitioner (const InputParameters &params)
 
std::vector< int64_t > Partition (const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > &centroids, int number_of_parts) override
 
virtual std::vector< int64_t > Partition (const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > &centroids, int number_of_parts)=0
 
- Public Member Functions inherited from ChiObject
 ChiObject ()
 
 ChiObject (const chi::InputParameters &params)
 
void SetStackID (size_t stack_id)
 
size_t StackID () const
 
virtual void PushOntoStack (std::shared_ptr< ChiObject > &new_object)
 
virtual ~ChiObject ()=default
 

Static Public Member Functions

static InputParameters GetInputParameters ()
 
- Static Public Member Functions inherited from ChiObject
static chi::InputParameters GetInputParameters ()
 

Protected Attributes

const size_t nx_
 
const size_t ny_
 
const size_t nz_
 
const std::vector< double > xcuts_
 
const std::vector< double > ycuts_
 
const std::vector< double > zcuts_
 
std::array< CoordinateInfo, 3 > coordinate_infos_
 

Additional Inherited Members

- Protected Member Functions inherited from chi::GraphPartitioner
 GraphPartitioner (const InputParameters &params)
 
- Static Protected Member Functions inherited from chi::GraphPartitioner
static InputParameters GetInputParameters ()
 

Detailed Description

Definition at line 11 of file KBAGraphPartitioner.h.

Constructor & Destructor Documentation

◆ KBAGraphPartitioner()

chi::KBAGraphPartitioner::KBAGraphPartitioner ( const InputParameters params)
explicit

Definition at line 47 of file KBAGraphPartitioner.cc.

Member Function Documentation

◆ GetInputParameters()

InputParameters chi::KBAGraphPartitioner::GetInputParameters ( )
static

Definition at line 18 of file KBAGraphPartitioner.cc.

◆ Partition()

std::vector< int64_t > chi::KBAGraphPartitioner::Partition ( const std::vector< std::vector< uint64_t > > &  graph,
const std::vector< chi_mesh::Vector3 > &  centroids,
int  number_of_parts 
)
overridevirtual

Given a graph. Returns the partition ids of each row in the graph.

Implements chi::GraphPartitioner.

Definition at line 85 of file KBAGraphPartitioner.cc.

Field Documentation

◆ coordinate_infos_

std::array<CoordinateInfo, 3> chi::KBAGraphPartitioner::coordinate_infos_
protected

Definition at line 32 of file KBAGraphPartitioner.h.

◆ nx_

const size_t chi::KBAGraphPartitioner::nx_
protected

Definition at line 23 of file KBAGraphPartitioner.h.

◆ ny_

const size_t chi::KBAGraphPartitioner::ny_
protected

Definition at line 23 of file KBAGraphPartitioner.h.

◆ nz_

const size_t chi::KBAGraphPartitioner::nz_
protected

Definition at line 23 of file KBAGraphPartitioner.h.

◆ xcuts_

const std::vector<double> chi::KBAGraphPartitioner::xcuts_
protected

Definition at line 24 of file KBAGraphPartitioner.h.

◆ ycuts_

const std::vector<double> chi::KBAGraphPartitioner::ycuts_
protected

Definition at line 24 of file KBAGraphPartitioner.h.

◆ zcuts_

const std::vector<double> chi::KBAGraphPartitioner::zcuts_
protected

Definition at line 24 of file KBAGraphPartitioner.h.


The documentation for this class was generated from the following files: