https://mooseframework.inl.gov
Functions
THMTestUtils.h File Reference

Go to the source code of this file.

Functions

Real computeFDPerturbation (const Real &value, const Real &relative_perturbation=REL_PERTURBATION)
 

Function Documentation

◆ computeFDPerturbation()

Real computeFDPerturbation ( const Real value,
const Real relative_perturbation = REL_PERTURBATION 
)
inline

Definition at line 23 of file THMTestUtils.h.

24 {
25  return std::max(relative_perturbation * std::abs(value), PERTURBATION_MIN);
26 }