Chi-Tech
chi::PETScGraphPartitioner Class Reference

#include <PETScGraphPartitioner.h>

Inheritance diagram for chi::PETScGraphPartitioner:
chi::GraphPartitioner ChiObject

Public Member Functions

 PETScGraphPartitioner (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 std::string type_
 

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 9 of file PETScGraphPartitioner.h.

Constructor & Destructor Documentation

◆ PETScGraphPartitioner()

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

Definition at line 28 of file PETScGraphPartitioner.cc.

Member Function Documentation

◆ GetInputParameters()

InputParameters chi::PETScGraphPartitioner::GetInputParameters ( )
static

Definition at line 15 of file PETScGraphPartitioner.cc.

◆ Partition()

std::vector< int64_t > chi::PETScGraphPartitioner::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 33 of file PETScGraphPartitioner.cc.

Field Documentation

◆ type_

const std::string chi::PETScGraphPartitioner::type_
protected

Definition at line 21 of file PETScGraphPartitioner.h.


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