From a81998f704aa15ebf8e85f634d6d2751a0823671 Mon Sep 17 00:00:00 2001 From: Azusa Yamaguchi Date: Sun, 14 Jun 2015 00:54:18 +0100 Subject: [PATCH] Real/Complex improvements --- lib/tensors/Tensor_inner.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tensors/Tensor_inner.h b/lib/tensors/Tensor_inner.h index bbb35605..c77adff1 100644 --- a/lib/tensors/Tensor_inner.h +++ b/lib/tensors/Tensor_inner.h @@ -10,7 +10,8 @@ namespace Grid { typedef typename sobj::scalar_type scalar; decltype(innerProduct(arg,arg)) nrm; nrm = innerProduct(arg,arg); - return real(nrm); + RealD ret = real(nrm); + return ret; } template inline