Commit 5bf3a268 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Revert bp3 version changes

parent c6164bc0
......@@ -721,7 +721,12 @@ void BP3Serializer::PutMinifooter(const uint64_t pgIndexStart,
helper::CopyToBuffer(buffer, position, version.c_str());
};
const std::string versionLongTag("ADIOS-BP v" ADIOS2_VERSION_STR);
const std::string majorVersion(std::to_string(ADIOS2_VERSION_MAJOR));
const std::string minorVersion(std::to_string(ADIOS2_VERSION_MINOR));
const std::string patchVersion(std::to_string(ADIOS2_VERSION_PATCH));
const std::string versionLongTag("ADIOS-BP v" + majorVersion + "." +
minorVersion + "." + patchVersion);
const size_t versionLongTagSize = versionLongTag.size();
if (versionLongTagSize < 24)
{
......@@ -734,12 +739,9 @@ void BP3Serializer::PutMinifooter(const uint64_t pgIndexStart,
helper::CopyToBuffer(buffer, position, versionLongTag.c_str(), 24);
}
lf_CopyVersionChar(std::to_string(ADIOS2_VERSION_MAJOR), buffer, position);
lf_CopyVersionChar(std::to_string(ADIOS2_VERSION_MINOR), buffer, position);
lf_CopyVersionChar(std::to_string(ADIOS2_VERSION_PATCH), buffer, position);
#ifdef ADIOS2_VERSION_TWEAK
lf_CopyVersionChar(std::to_string(ADIOS2_VERSION_TWEAK), buffer, position);
#endif
lf_CopyVersionChar(majorVersion, buffer, position);
lf_CopyVersionChar(minorVersion, buffer, position);
lf_CopyVersionChar(patchVersion, buffer, position);
++position;
helper::CopyToBuffer(buffer, position, &pgIndexStart);
......
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