Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
99ffb295
Commit
99ffb295
authored
Nov 03, 2017
by
Kirill Terekhov
Browse files
Properly release memory in INNER_MLMPTILUC2 solver
parent
2ab39862
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/Solver/solver_inner/solver_mlmptiluc/solver_mlmtiluc2.cpp
View file @
99ffb295
...
...
@@ -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
...
...
Source/Solver/solver_inner/solver_mlmptiluc/solver_mlmtiluc2.hpp
View file @
99ffb295
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment