147 |
|
|
148 |
void Paso_SystemMatrix_dealloc(Paso_SystemMatrix* in) { |
void Paso_SystemMatrix_dealloc(Paso_SystemMatrix* in) { |
149 |
if (in!=NULL) { |
if (in!=NULL) { |
|
printf("Paso_SystemMatrix_dealloc %d: %d\n",in,in->reference_counter); |
|
150 |
in->reference_counter--; |
in->reference_counter--; |
151 |
if (in->reference_counter<=0) { |
if (in->reference_counter<=0) { |
|
printf("Paso_SystemMatrix_dealloc %d: system matrix as been deallocated.\n",in); |
|
152 |
MEMFREE(in->val); |
MEMFREE(in->val); |
153 |
MEMFREE(in->normalizer); |
MEMFREE(in->normalizer); |
154 |
Paso_SystemMatrixPattern_dealloc(in->pattern); |
Paso_SystemMatrixPattern_dealloc(in->pattern); |