Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
INMOST
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Terekhov
INMOST
Commits
99ffb295
Commit
99ffb295
authored
Nov 03, 2017
by
Kirill Terekhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly release memory in INNER_MLMPTILUC2 solver
parent
2ab39862
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
Source/Solver/solver_inner/solver_mlmptiluc/solver_mlmtiluc2.cpp
...Solver/solver_inner/solver_mlmptiluc/solver_mlmtiluc2.cpp
+10
-0
Source/Solver/solver_inner/solver_mlmptiluc/solver_mlmtiluc2.hpp
...Solver/solver_inner/solver_mlmptiluc/solver_mlmtiluc2.hpp
+0
-5
No files found.
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