Commit dbaf8c48 authored by Thomas Witkowski's avatar Thomas Witkowski

Fixed valgrind errors in GridWriter.

parent bfde6f26
......@@ -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");
......
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