Commit ea825ae7 authored by Mathieu Faverge's avatar Mathieu Faverge

Add color field

parent 15b5b10c
......@@ -6,10 +6,11 @@
typedef struct symbol_cblk_s
{
int32_t m_snodeid; // Id of the supernodes this cblk belongs to
int32_t m_fcolnum; // First column index
int32_t m_fcolnum; // First column index
int32_t m_lcolnum; // Last column index (inclusive)
int32_t m_bloknum; // First blok in column
int32_t m_flags; // Flags
int32_t m_bloknum; // First blok in column
int32_t m_flags; // Flags
float m_color;
} symbol_cblk_t;
typedef struct symbol_blok_s
......@@ -21,6 +22,7 @@ typedef struct symbol_blok_s
uint32_t m_localization; // Localization
int32_t m_flags;
float m_color;
} symbol_blok_t;
#define BLOK_FLAG_IN_TREE 1
......
......@@ -14,11 +14,11 @@ int pastix_read_symbol(FILE* stream, symbol_matrix_t* matrix)
int32_t result = 0;
result += pastix_read_int(stream, &versval);
result += pastix_read_int(stream, &matrix->m_cblknbr);
result += pastix_read_int(stream, &matrix->m_bloknbr);
result += pastix_read_int(stream, &nodenbr);
result += pastix_read_int(stream, &matrix->m_baseval);
result += pastix_read_int(stream, &versval);
result += pastix_read_int(stream, &matrix->m_cblknbr);
result += pastix_read_int(stream, &matrix->m_bloknbr);
result += pastix_read_int(stream, &nodenbr);
result += pastix_read_int(stream, &matrix->m_baseval);
matrix->m_sndenbr = matrix->m_cblknbr;
if ((result != 5) ||
......@@ -63,6 +63,7 @@ int pastix_read_symbol(FILE* stream, symbol_matrix_t* matrix)
return 1;
}
cblk->m_color = 0.f;
cblk->m_flags = 0;
*snde = 0;
}
......@@ -88,6 +89,7 @@ int pastix_read_symbol(FILE* stream, symbol_matrix_t* matrix)
blok->m_localization = 0;
blok->m_flags = 0;
blok->m_color = -1.f;
// Compatibility block
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment