Skip to content

Commit

Permalink
Revert "Debug logging in Array::serialize() and Array::deserialize() …
Browse files Browse the repository at this point in the history
…to help"

This reverts commit 3f86c89.
  • Loading branch information
theurich committed Nov 12, 2024
1 parent 557114d commit 944cc34
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/Infrastructure/Array/src/ESMCI_Array.C
Original file line number Diff line number Diff line change
Expand Up @@ -4487,21 +4487,8 @@ int Array::serialize(
*ip++ = distgridToPackedArrayMap[i];
*ip++ = tensorElementCount;
*ip++ = replicatedDimCount;
// *ip++ = replicatedDimCount;
} else
ip += 3 + 2*tensorCount + 2*distgrid->getDimCount () + rank;
// ip += 4 + 2*tensorCount + 2*distgrid->getDimCount () + rank;

if (inquireflag != ESMF_INQUIREONLY){
std::stringstream msg;
msg << "Array::serialize():" << __LINE__ << " name: " << getName()
<< " rank=" << rank
<< " tensorCount=" << tensorCount
<< " distgrid->getDimCount()=" << distgrid->getDimCount()
<< " tensorElementCount=" << tensorElementCount
<< " replicatedDimCount=" << *(ip-1);
ESMC_LogDefault.Write(msg.str(), ESMC_LOGMSG_DEBUG);
}

// fix offset
cp = (char *)ip;
Expand Down Expand Up @@ -4593,17 +4580,6 @@ int Array::deserialize(
distgridToPackedArrayMap[i] = *ip++;
tensorElementCount = *ip++;
replicatedDimCount = *ip++;
// ip++;
{
std::stringstream msg;
msg << "Array::deserialize():" << __LINE__ << " name: " << getName()
<< " rank=" << rank
<< " tensorCount=" << tensorCount
<< " distgrid->getDimCount()=" << distgrid->getDimCount()
<< " tensorElementCount=" << tensorElementCount
<< " replicatedDimCount=" << replicatedDimCount;
ESMC_LogDefault.Write(msg.str(), ESMC_LOGMSG_DEBUG);
}

// fix offset
cp = (char *)ip;
Expand Down

0 comments on commit 944cc34

Please sign in to comment.