Commit 99ffb295 authored by Kirill Terekhov's avatar Kirill Terekhov

Properly release memory in INNER_MLMPTILUC2 solver

parent 2ab39862
......@@ -3703,6 +3703,16 @@ public:
ddP.clear();
ddQ.clear();
LU_Diag.clear();
for(int k = 0; k < (int)E_Address.size(); ++k)
delete E_Address[k];
for(int k = 0; k < (int)F_Address.size(); ++k)
delete F_Address[k];
E_Address.clear();
F_Address.clear();
level_size.clear();
level_interval.clear();
E_Entries.clear();
F_Entries.clear();
return true;
}
void MLMTILUC_preconditioner::ApplyB(double alpha, Sparse::Vector & x, double beta, Sparse::Vector & y) // y = alpha A x + beta y
......
......@@ -13,11 +13,6 @@ class MLMTILUC_preconditioner : public Method
INMOST_DATA_ENUM_TYPE first, last;
INMOST_DATA_ENUM_TYPE Size() { return last - first; }
} Interval;
typedef struct row_col_t
{
Sparse::Row row, col;
INMOST_DATA_REAL_TYPE diag;
} row_col;
typedef dynarray<INMOST_DATA_ENUM_TYPE,256> levels_t;
std::vector<Sparse::Row::entry> LU_Entries, B_Entries;
......
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