Commit 863de4fe authored by Brian Panneton's avatar Brian Panneton

FIX: Fixed XdmfDiff to allow unsigned int. fabs did not accept it as a param.

parent 1ef73048
......@@ -93,7 +93,9 @@ namespace {
const T array1Value = array1->getValue<T>(i);
const T array2Value = array2->getValue<T>(i);
const T difference =
static_cast<T>(std::fabs(array1Value - array2Value));
static_cast<T>(array1Value > array2Value ?
array1Value-array2Value : array2Value-array1Value);
if(difference > absoluteTolerance) {
std::cout << "At Index " << i << " | Expected: "
<< array1Value << " | Got: " << array2Value << std::endl;
......
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