Go to Overview over all GrAL packages.
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Converters to Metis Formats


Modules

Internal functions for Metis Partitioning Module

Compounds

class  MetisPartitioning
 Partition a grid using the Metis library. More...


Functions

template<class GRID> void write_metis_cell_graph (GRID const &G, std::ostream &out)
 Write a grid in Metis graph format, where cells correspond to graph nodes and facets to graph edges. More...

template<class GRID, class FACETFCT> void write_metis_cell_graph_edge_weights (GRID const &G, FACETFCT const &weights, std::ostream &out)
 Write a grid in Metis graph format, where cells correspond to graph nodes and facets to graph edges. More...

template<class GRID> int write_metis_mesh (GRID const &G, std::ostream &out)
 Write a grid in Metis mesh format. More...


Detailed Description

This module contains various classes and functions to interface with the Metis grid partitioning library.

The most important and convenient class in this module is MetisPartitioning.


Function Documentation

template<class GRID>
void write_metis_cell_graph GRID const &    G,
std::ostream &    out
 

Write a grid in Metis graph format, where cells correspond to graph nodes and facets to graph edges.

Template parameters:
  • GRID:
    • type grid_types<GRID> gt;
    • type gt::Cell;
    • type gt::Facet;
    • type gt::CellIterator;
    • type gt::CellOnCellIterator;
    • type grid_function<Cell,int>;

Definition at line 10 of file grid-to-metis.C.

template<class GRID, class FACETFCT>
void write_metis_cell_graph_edge_weights GRID const &    G,
FACETFCT const &    weights,
std::ostream &    out
 

Write a grid in Metis graph format, where cells correspond to graph nodes and facets to graph edges.

This function also writes weights on edges.

Template parameters:
In addition to write_metis_cell_graph:
  • FACETFCT:
    • value_type operator()(gt::Facet)
    • value_type convertible to int
    • weights(F) is an integer > 0

Definition at line 46 of file grid-to-metis.C.

template<class GRID>
int write_metis_mesh GRID const &    G,
std::ostream &    out
 

Write a grid in Metis mesh format.

G must consist entirely of triangles OR entirely of quads. Else use write_metis_graph.

Template parameters:
  • type grid_types<GRID> gt;
  • type gt::Cell
  • type gt::CellIterator
  • type gt::Facet
  • type gt::CellOnCellIterator;

Definition at line 83 of file grid-to-metis.C.


Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 16:08:02 2002 for GrAL Partitioning Components by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000