From 94d29e154ed1637118b2e5e931c20aa7ea01eea5 Mon Sep 17 00:00:00 2001 From: Shikhar Kumar Date: Tue, 5 Mar 2019 18:57:58 -0500 Subject: [PATCH] Temporary fix to address precision discrepancies with weightfactors numpy array --- openmc/cmfd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/cmfd.py b/openmc/cmfd.py index d1ea77fa06..18a5caa1ce 100644 --- a/openmc/cmfd.py +++ b/openmc/cmfd.py @@ -1150,7 +1150,7 @@ class CMFDRun(object): with np.errstate(divide='ignore', invalid='ignore'): self._weightfactors = (np.divide(self._cmfd_src * norm, sourcecounts, where=div_condition, - out=np.ones_like(self._cmfd_src))) + out=np.ones_like(self._cmfd_src), dtype='float16')) if not self._feedback: return