Scotch Brand 5.1.10 User Manual

Page 118

Advertising
background image

Fortran users must use the PXFFILENO or FNUM functions to obtain the numbers
of the Unix file descriptors graffildes and geomfildes associated with the
logical units of the graph and geometry files.

Return values

SCOTCH graphGeomSaveScot

returns 0 if the graph topology and geometry

have been successfully written to grafstream and geomstream, and 1 else.

7.11.9

SCOTCH meshGeomLoadHabo

Synopsis

int SCOTCH meshGeomLoadHabo (SCOTCH Mesh *

meshptr,

SCOTCH Geom *

geomptr,

FILE *

meshstream,

FILE *

geomstream,

const char *

string)

scotchfmeshgeomloadhabo (doubleprecision (*)

meshdat,

doubleprecision (*)

geomdat,

integer

meshfildes,

integer

geomfildes,

character (*)

string)

Description

The SCOTCH meshGeomLoadHabo routine fills the SCOTCH Mesh structure
pointed to by meshptr with the source mesh description available from stream
meshstream

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

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

fields are not used. Since multiple mesh 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 mesh 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 meshfildes associated with the logical unit of the
mesh file.

Return values

SCOTCH meshGeomLoadHabo

returns 0 if the mesh structure has been success-

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

7.11.10

SCOTCH meshGeomLoadScot

Synopsis

int SCOTCH meshGeomLoadScot (SCOTCH Mesh *

meshptr,

SCOTCH Geom *

geomptr,

FILE *

meshstream,

FILE *

geomstream,

const char *

string)

118

Advertising