Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
16452db7
Commit
16452db7
authored
Nov 24, 2008
by
Thomas Witkowski
Browse files
* ?
parent
988bfc8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/SolutionDataStorage.hh
View file @
16452db7
...
...
@@ -50,6 +50,12 @@ namespace AMDiS {
ERROR_EXIT
(
"Not yet
\n
"
);
}
// If pop was the last operation, cleanup and reset the data storage.
if
(
poped
)
{
clear
();
poped
=
false
;
}
std
::
vector
<
FiniteElemSpace
*>
feSpace
(
solution
->
getFESpaces
().
size
());
for
(
int
i
=
0
;
i
<
feSpace
.
size
();
i
++
)
{
feSpace
[
i
]
=
NEW
FiniteElemSpace
();
...
...
@@ -65,12 +71,6 @@ namespace AMDiS {
vec
->
interpol
(
solution
,
1.0
);
memoryUsage
+=
vec
->
calcMemoryUsage
();
// If pop was the last operation, cleanup and reset the data storage.
if
(
poped
)
{
clear
();
poped
=
false
;
}
solutions
.
push_back
(
vec
);
timestamps
.
push_back
(
timestamp
);
...
...
@@ -97,7 +97,7 @@ namespace AMDiS {
template
<
typename
T
>
void
SolutionDataStorage
<
T
>::
clear
()
{
for
(
int
i
=
1
;
i
<
static_cast
<
int
>
(
solutions
.
size
());
i
++
)
{
for
(
int
i
=
0
;
i
<
static_cast
<
int
>
(
solutions
.
size
());
i
++
)
{
DELETE
solutions
[
i
];
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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