Scotch Brand 5.1.10 User Manual

Page 109

Advertising
background image

7.10.3

SCOTCH stratSave

Synopsis

int SCOTCH stratSave (const SCOTCH Strat *

straptr,

FILE *

stream)

scotchfstratsave (doubleprecision (*)

stradat,

integer

fildes,

integer

ierr)

Description

The SCOTCH stratSave routine saves the contents of the SCOTCH Strat struc-
ture pointed to by straptr to stream stream, in the form of a text string.
The methods and parameters of the strategy string depend on the type of the
strategy, that is, whether it is a bipartitioning, mapping, or ordering strategy,
and to which structure it applies, that is, graphs or meshes.

Fortran users must use the PXFFILENO or FNUM functions to obtain the number
of the Unix file descriptor fildes associated with the logical unit of the output
file.

Return values

SCOTCH stratSave

returns 0 if the strategy string has been successfully writ-

ten to stream, and 1 else.

7.10.4

SCOTCH stratGraphBipart

Synopsis

int SCOTCH stratGraphBipart (SCOTCH Strat *

straptr,

const char *

string)

scotchfstratgraphbipart (doubleprecision (*)

stradat,

character (*)

string,

integer

ierr)

Description

The SCOTCH stratGraphBipart routine fills the strategy structure pointed
to by straptr with the graph bipartitioning strategy string pointed to by
string

. From this point, the strategy structure can only be used as a graph

bipartitioning strategy, to be used by function SCOTCH archBuild, for in-
stance.

When using the C interface, the array of characters pointed to by string
must be null-terminated.

Return values

SCOTCH stratGraphBipart

returns 0 if the strategy string has been success-

fully set, and 1 else.

109

Advertising