Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
dbaf8c48
Commit
dbaf8c48
authored
Dec 15, 2010
by
Thomas Witkowski
Browse files
Fixed valgrind errors in GridWriter.
parent
bfde6f26
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/io/GridWriter.hh
View file @
dbaf8c48
...
...
@@ -123,7 +123,7 @@ namespace AMDiS {
void
GridWriter
<
T
>::
writeGrid
(
const
WorldVector
<
double
>
*
p
,
int
*
numPoints
,
double
*
dist
,
std
::
vector
<
DOFVector
<
T
>
*
>
vec
,
std
::
vector
<
DOFVector
<
T
>
*>
vec
,
const
char
*
filename
,
int
outFilePrecision
)
{
...
...
@@ -144,6 +144,8 @@ namespace AMDiS {
WorldVector
<
double
>
*
basis
=
new
WorldVector
<
double
>
[
dim
];
double
*
lengthBasis
=
new
double
[
dim
];
WorldVector
<
double
>
*
step
=
new
WorldVector
<
double
>
[
3
];
for
(
int
i
=
0
;
i
<
3
;
i
++
)
step
[
i
].
set
(
0.0
);
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
{
TEST_EXIT
(
numPoints
[
i
]
>
0
)(
"numPoints < 1
\n
"
);
...
...
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