Commit 73ceb409 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont
Browse files

removed debug statements

parent 1133c56e
...@@ -265,7 +265,6 @@ void ...@@ -265,7 +265,6 @@ void
XdmfHDF5Writer::write(XdmfArray & array, XdmfHDF5Writer::write(XdmfArray & array,
const int fapl) const int fapl)
{ {
printf("write started\n");
hid_t datatype = -1; hid_t datatype = -1;
bool closeDatatype = false; bool closeDatatype = false;
...@@ -881,7 +880,6 @@ else ...@@ -881,7 +880,6 @@ else
//if the array hasn't been split //if the array hasn't been split
if (amountAlreadyWritten == 0) if (amountAlreadyWritten == 0)
{ {
printf("fits and not split\n");
//just pass all data to the partial vectors //just pass all data to the partial vectors
for (int j = 0; j < dimensions.size(); j++)//done using a loop so that data is copied, not referenced for (int j = 0; j < dimensions.size(); j++)//done using a loop so that data is copied, not referenced
{ {
...@@ -893,7 +891,6 @@ else ...@@ -893,7 +891,6 @@ else
} }
else//if the array has been split else//if the array has been split
{ {
printf("fits and split\n");
int dimensionIndex = previousDimensions.size() - 1; int dimensionIndex = previousDimensions.size() - 1;
//loop previous dimensions in //loop previous dimensions in
...@@ -912,7 +909,6 @@ else ...@@ -912,7 +909,6 @@ else
while (newStart < 0) while (newStart < 0)
{ {
newStart += stride[j]; newStart += stride[j];
printf("newStart = %d\n", newStart);
} }
partialStarts.push_back(newStart); partialStarts.push_back(newStart);
...@@ -986,7 +982,6 @@ else ...@@ -986,7 +982,6 @@ else
//if the array hasn't been split //if the array hasn't been split
if (amountAlreadyWritten == 0) if (amountAlreadyWritten == 0)
{ {
printf("doesn't fit and not split\n");
//see if it will fit in the next file //see if it will fit in the next file
//if it will just go to the next file //if it will just go to the next file
//otherwise split it. //otherwise split it.
...@@ -1042,7 +1037,6 @@ else ...@@ -1042,7 +1037,6 @@ else
} }
else//if the array has been split else//if the array has been split
{//This case should not come up often as it requires truly gigantic data sets {//This case should not come up often as it requires truly gigantic data sets
printf("doesn't fit and is split\n");
//see if it will fit in the next file //see if it will fit in the next file
//if it will just go to the next file //if it will just go to the next file
//otherwise split it. //otherwise split it.
...@@ -1084,7 +1078,6 @@ else ...@@ -1084,7 +1078,6 @@ else
while (newStart < 0) while (newStart < 0)
{ {
newStart += stride[j]; newStart += stride[j];
printf("newStart = %d\n", newStart);
} }
partialStarts.push_back(newStart); partialStarts.push_back(newStart);
//stride should not change in this algorithm //stride should not change in this algorithm
...@@ -1582,26 +1575,6 @@ if (mMode == Append) { ...@@ -1582,26 +1575,6 @@ if (mMode == Append) {
std::vector<unsigned int> curDataSize = *dataSizeWalker; std::vector<unsigned int> curDataSize = *dataSizeWalker;
printf("starts:\n");
for (int j = 0; j< curStart.size(); j++)
{
printf("Stride[%d] = %d\n", j, curStart[j]);
}
printf("strides:\n");
for (int j = 0; j< curStride.size(); j++)
{
printf("Stride[%d] = %d\n", j, curStride[j]);
}
printf("dimensions:\n");
for (int j = 0; j< curDimensions.size(); j++)
{
printf("dimension[%d] = %d\n", j, curDimensions[j]);
}
printf("dataspace:\n");
for (int j = 0; j< curDataSize.size(); j++)
{
printf("dataspace[%d] = %d\n", j, curDataSize[j]);
}
bool closeFile = false; bool closeFile = false;
//This is meant to open files if it isn't already opened by the write prior //This is meant to open files if it isn't already opened by the write prior
...@@ -1885,5 +1858,4 @@ if (mMode == Append) { ...@@ -1885,5 +1858,4 @@ if (mMode == Append) {
array.release(); array.release();
} }
} }
printf("write done\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