Browse Source

use TMALLOC

pre-master-46
rlar 10 years ago
committed by Holger Vogt
parent
commit
eda8b57eb4
  1. 5
      src/maths/KLU/klu_utils.c

5
src/maths/KLU/klu_utils.c

@ -1,3 +1,4 @@
#include "ngspice/memory.h"
#include "klu_internal.h"
typedef struct sElement {
@ -104,8 +105,8 @@ KLU_convert_matrix_in_CSR /* return TRUE if successful, FALSE otherwise
Common->status = KLU_OK ;
MatrixCOO = (Element *) malloc ((size_t)nz * sizeof (Element)) ;
Ap_COO = (Int *) malloc ((size_t)nz * sizeof (Int)) ;
MatrixCOO = TMALLOC(Element, nz);
Ap_COO = TMALLOC(Int, nz);
Az_CSC = (Entry *)Ax_CSC ;
Az_CSR = (Entry *)Ax_CSR ;

Loading…
Cancel
Save