SU2
Functions
options.c File Reference

This file contains various routines for dealing with options and ctrl_t. More...

#include "metislib.h"

Functions

ctrl_tSetupCtrl (moptype_et optype, idx_t *options, idx_t ncon, idx_t nparts, real_t *tpwgts, real_t *ubvec)
 
void SetupKWayBalMultipliers (ctrl_t *ctrl, graph_t *graph)
 
void Setup2WayBalMultipliers (ctrl_t *ctrl, graph_t *graph, real_t *tpwgts)
 
void PrintCtrl (ctrl_t *ctrl)
 
int CheckParams (ctrl_t *ctrl)
 
void FreeCtrl (ctrl_t **r_ctrl)
 

Detailed Description

This file contains various routines for dealing with options and ctrl_t.

Date
Started 5/12/2011
Author
George
Copyright 1997-2011, Regents of the University of Minnesota
Version
$Id: options.c 13901 2013-03-24 16:17:03Z karypis $ 

Function Documentation

§ CheckParams()

int CheckParams ( ctrl_t ctrl)

This function checks the validity of user-supplied parameters

§ FreeCtrl()

void FreeCtrl ( ctrl_t **  r_ctrl)

This function frees the memory associated with a ctrl_t

§ PrintCtrl()

void PrintCtrl ( ctrl_t ctrl)

This function prints the various control fields

§ Setup2WayBalMultipliers()

void Setup2WayBalMultipliers ( ctrl_t ctrl,
graph_t graph,
real_t *  tpwgts 
)

Computes the per-partition/constraint balance multipliers

§ SetupCtrl()

ctrl_t* SetupCtrl ( moptype_et  optype,
idx_t *  options,
idx_t  ncon,
idx_t  nparts,
real_t *  tpwgts,
real_t *  ubvec 
)

This function creates and sets the run parameters (ctrl_t)

§ SetupKWayBalMultipliers()

void SetupKWayBalMultipliers ( ctrl_t ctrl,
graph_t graph 
)

Computes the per-partition/constraint balance multipliers