62 if ((intLoad (stream, &versval) +
63 intLoad (stream, &cblknbr) +
64 intLoad (stream, &bloknbr) +
65 intLoad (stream, &nodenbr) +
66 intLoad (stream, &baseval) != 5) ||
69 (bloknbr < cblknbr) ||
70 (nodenbr < cblknbr)) {
71 pastix_print_error(
"symbolLoad: bad input (1)" );
77 pastix_print_error(
"symbolLoad: out of memory" );
86 for (cblknum = 0; cblknum < cblknbr; cblknum ++) {
91 pastix_print_error(
"symbolLoad: bad input (2)" );
100 for (bloknum = 0; bloknum < bloknbr; bloknum ++) {
105 pastix_print_error(
"symbolLoad: bad input (3)" );
114 if ((versval > 0) && (intLoad (stream, &tmp) != 1)) {
115 pastix_print_error(
"symbolLoad: bad input (4)" );
148 FILE *
const stream )
156 o = (fprintf (stream,
"1\n%ld\t%ld\t%ld\t%ld\n",
160 (
long) symbptr->
baseval) == EOF);
161 for (cblkptr = symbptr->
cblktab, cblktnd = cblkptr + symbptr->
cblknbr;
162 (cblkptr < cblktnd) && (o == 0); cblkptr ++) {
163 o = (fprintf (stream,
"%ld\t%ld\t%ld\n",
166 (
long) cblkptr->
bloknum) == EOF);
168 for (blokptr = symbptr->
bloktab, bloktnd = blokptr + symbptr->
bloknbr;
169 (blokptr < bloktnd) && (o == 0); blokptr ++) {
170 o = (fprintf (stream,
"%ld\t%ld\t%ld\n",
173 (
long) blokptr->
fcblknm ) == EOF);
198 for(i=0;i<symbptr->
cblknbr;i++)
200 fprintf(file,
"CBLK %ld [%ld : %ld ] \n",
205 j<symbptr->cblktab[i+1].bloknum;j++) {
206 fprintf(file,
"--BLOK %ld [%ld : %ld ]\n",
BEGIN_C_DECLS typedef int pastix_int_t
void pastixSymbolPrint(const symbol_matrix_t *symbptr, FILE *file)
Print the given block matrix structure in human readable format.
int pastixSymbolSave(const symbol_matrix_t *symbptr, FILE *stream)
Save the given block matrix structure to the given stream.
int pastixSymbolLoad(symbol_matrix_t *symbptr, FILE *stream)
Load the given block matrix structure from the given stream.
void pastixSymbolExit(symbol_matrix_t *symbptr)
Free the content of symbolic matrix.
Symbol column block structure.