From e28abba21cd6affeeeec30c7866b2bfcfeaf865c Mon Sep 17 00:00:00 2001 From: Weile Wei Date: Thu, 18 May 2023 09:45:41 -0700 Subject: [PATCH] Use double precision for stdpar and avoid division by zero in RelDiff computation --- stdpar/src/lulesh-util.cc | 2 +- stdpar/src/lulesh.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdpar/src/lulesh-util.cc b/stdpar/src/lulesh-util.cc index d2a014c..9b8133e 100644 --- a/stdpar/src/lulesh-util.cc +++ b/stdpar/src/lulesh-util.cc @@ -205,7 +205,7 @@ void VerifyAndWriteFinalOutput(Real_t elapsed_time, if (MaxAbsDiff 1e-8 ? AbsDiff / locDom.e(k*nx+j) : 0.0; if (MaxRelDiff