Scotch Brand 5.1.10 User Manual

Page 116

Advertising
background image

The SCOTCH graphGeomSaveChac routine saves the contents of the SCOTCH
Graph

structure pointed to by grafptr to stream grafstream, in the Chaco

graph format [24]. Since this graph format does not handle geometry data,
the geomptr and geomstream fields are not used, as well as the string field.

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

Return values

SCOTCH graphGeomSaveChac

returns 0 if the graph structure has been suc-

cessfully written to grafstream, and 1 else.

7.11.6

SCOTCH graphGeomLoadHabo

Synopsis

int SCOTCH graphGeomLoadHabo (SCOTCH Graph *

grafptr,

SCOTCH Geom *

geomptr,

FILE *

grafstream,

FILE *

geomstream,

const char *

string)

scotchfgraphgeomloadhabo (doubleprecision (*)

grafdat,

doubleprecision (*)

geomdat,

integer

graffildes,

integer

geomfildes,

character (*)

string)

Description

The SCOTCH graphGeomLoadHabo routine fills the SCOTCH Graph structure
pointed to by grafptr with the source graph description available from stream
grafstream

in the Harwell-Boeing square assembled matrix format [10]. Since

this graph format does not handle geometry data, the geomptr and geom
stream

fields are not used. Since multiple graph structures can be encoded

sequentially within the same file, the string field contains the string repre-
sentation of an integer number that codes the rank of the graph to read within
the Harwell-Boeing file. It is equal to “0” in most cases.

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

Return values

SCOTCH graphGeomLoadHabo

returns 0 if the graph structure has been suc-

cessfully allocated and filled with the data read, and 1 else.

7.11.7

SCOTCH graphGeomLoadScot

Synopsis

116

Advertising