debug_dump.c

Functions to dump informations on disk.

Summary
debug_dump.cFunctions to dump informations on disk.
dump1Dumps ord->permtab on disk.
dump2Prints internal CSCd, in (i,j,v) format, in a file.
dump3Prints solver matrix informations, in (i,j,v) format, in a file, for LLt or LDLt decomposition.
dump3_LUPrints solver matrix informations, in (i,j,v) format, in a file, for LU decomposition.
dump4Writes column blocks and blocs dimension in a file.
dump5Writes right-hand-side memeber in a file.
dump6Prints diagonal blocks in the folowing format :
dump7Writes a vector in the folowing format :

dump1

void dump1(Order *ord,
FILE *stream,
INT colnbr)

Dumps ord->permtab on disk.

Format

i -> permtab[i]

parameters

ordOrder structure to print permtab from.
streamFILE *, opened in write mode, in which permtab will be writen.
colnbrNumber of elements in permtab.

dump2

void dump2(const SolverMatrix *datacode,
FLOAT *trandcsc,
FILE *stream)

Prints internal CSCd, in (i,j,v) format, in a file.

Parameters

datacodeSolverMatrix.
streamFILE * opened in write mode.

dump3

void dump3(const SolverMatrix *datacode,
FILE *stream)

Prints solver matrix informations, in (i,j,v) format, in a file, for LLt or LDLt decomposition.

Parameters

datacodeSolverMatrix.
streamFILE * opened in write mode.

dump3_LU

void dump3_LU(const SolverMatrix *datacode,
FILE *streamL,
FILE *streamU)

Prints solver matrix informations, in (i,j,v) format, in a file, for LU decomposition.

Parameters

datacodeSolverMatrix.
streamLFILE * opened in write mode.
streamUFILE * opened in write mode.

dump4

void dump4(const SolverMatrix *datacode,
FILE *stream)

Writes column blocks and blocs dimension in a file.

Parameters

datacodeSolverMatrix containing informations about blocs
streamFILE * opened in write mode.

dump5

void dump5(const SolverMatrix *datacode,
FILE *stream)

Writes right-hand-side memeber in a file.

Parameters

datacodeSolverMatrix containing right-hand-side member.
streamFILE * opened in write mode.

dump6

void dump6(const SolverMatrix *datacode,
FILE *streamL,
FILE *streamU)

Prints diagonal blocks in the folowing format :

** block diag <cblknbr> **
<line1> [<value1> <value2> ... ]
<line2> [...                   ]

Prints one file dor L and one for U.

Parameters

datacodeSolverMatrix.
streamLFILE * into which L diagonal blocs will be writen.
streamUFILE * into which U diagonal blocs will be writen.

dump7

void dump7(FLOAT *v,
FILE *stream,
INT colnbr)

Writes a vector in the folowing format :

<line1> <value[line1]>
<line2> <value[line1]>

Parameters

vvector to write.
streamFILE * opened in write mode.
nbrSize of the vector v.
void dump1(Order *ord,
FILE *stream,
INT colnbr)
Dumps ord->permtab on disk.
void dump2(const SolverMatrix *datacode,
FLOAT *trandcsc,
FILE *stream)
Prints internal CSCd, in (i,j,v) format, in a file.
void dump3(const SolverMatrix *datacode,
FILE *stream)
Prints solver matrix informations, in (i,j,v) format, in a file, for LLt or LDLt decomposition.
void dump3_LU(const SolverMatrix *datacode,
FILE *streamL,
FILE *streamU)
Prints solver matrix informations, in (i,j,v) format, in a file, for LU decomposition.
void dump4(const SolverMatrix *datacode,
FILE *stream)
Writes column blocks and blocs dimension in a file.
void dump5(const SolverMatrix *datacode,
FILE *stream)
Writes right-hand-side memeber in a file.
void dump6(const SolverMatrix *datacode,
FILE *streamL,
FILE *streamU)
Prints diagonal blocks in the folowing format :
void dump7(FLOAT *v,
FILE *stream,
INT colnbr)
Writes a vector in the folowing format :
Close