Skip to content

Commit

Permalink
Address valgrind issue (idaholab#8619)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Mar 13, 2017
1 parent 8df896e commit 91be98a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/src/postprocessors/MemoryUsage.C
Expand Up @@ -44,6 +44,8 @@ MemoryUsage::MemoryUsage(const InputParameters & parameters)
: GeneralPostprocessor(parameters),
_mem_type(getParam<MooseEnum>("mem_type").getEnum<MemType>()),
_value_type(getParam<MooseEnum>("value_type").getEnum<ValueType>()),
_value(0.0),
_peak_value(0.0),
_report_peak_value(getParam<bool>("report_peak_value"))
{
}
Expand Down Expand Up @@ -144,6 +146,9 @@ MemoryUsage::finalize()
case ValueType::min_process:
gatherMin(_value);
break;

default:
mooseError("Invalid value_type");
}

if (_value > _peak_value)
Expand Down

0 comments on commit 91be98a

Please sign in to comment.