Skip to content

Commit

Permalink
Warning, kill cout
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Feb 17, 2023
1 parent 89997ce commit 8eee7b8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions source/adios2/toolkit/format/bp5/BP5Deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ void BP5Deserializer::InstallMetaData(void *MetadataBlock, size_t BlockLen,
meta_base->Offsets =
&JoinedDimenOffsetArray[CurJoinedDimenOffset];
CurJoinedDimenOffset += meta_base->DBCount;
for (int b = 0; b < BlockCount; b++)
for (size_t b = 0; b < BlockCount; b++)
{
size_t PreviousJoinedOffset = 0;
if (VarRec->LastJoinedShape != NULL)
Expand All @@ -852,27 +852,18 @@ void BP5Deserializer::InstallMetaData(void *MetadataBlock, size_t BlockLen,
// overwrite the JoinedDimen value in that entry
VarRec->LastJoinedShape[VarRec->JoinedDimen] = 0;
}
std::cout << "Block " << b << " Previous joined offset "
<< PreviousJoinedOffset << std::endl;
VarRec->LastJoinedShape[VarRec->JoinedDimen] +=
meta_base->Count[(b * VarRec->DimCount) +
VarRec->JoinedDimen];
std::cout << "After Block " << b << " Updated shape to "
<< VarRec->LastJoinedShape[VarRec->JoinedDimen]
<< std::endl;
for (size_t i = 0; i < meta_base->Dims; i++)
{
if (i == VarRec->JoinedDimen)
{
std::cout << "Setting offset " << i << " to "
<< PreviousJoinedOffset << std::endl;
meta_base->Offsets[(b * VarRec->DimCount) + i] =
PreviousJoinedOffset;
}
else
{
std::cout << "Setting offset " << i << " to " << 0
<< std::endl;
meta_base->Offsets[(b * VarRec->DimCount) + i] = 0;
}
}
Expand Down

0 comments on commit 8eee7b8

Please sign in to comment.