Skip to content

Commit

Permalink
Merge pull request #1018 from keichi/fix-1017
Browse files Browse the repository at this point in the history
Fixed crash when using ZFP compression under fixed-precision mode
  • Loading branch information
williamfgc committed Nov 28, 2018
2 parents c54e0b1 + 1c938cd commit d83cddc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/adios2/toolkit/format/bp3/operation/BP3Zfp.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ void BP3Zfp::SetMetadataCommon(
{
mode = static_cast<int32_t>(zfp_mode_precision);
}
itMode = operation.Parameters.find("rate");
if (itMode != operation.Parameters.end())
else
{
mode = static_cast<int32_t>(zfp_mode_rate);
itMode = operation.Parameters.find("rate");
if (itMode != operation.Parameters.end())
{
mode = static_cast<int32_t>(zfp_mode_rate);
}
}
}
const std::string modeStr = itMode->second;
Expand Down

0 comments on commit d83cddc

Please sign in to comment.