From 759f65ec9dfde84de4546a28b322ccf1b1f3726d Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Thu, 22 Dec 2016 12:49:14 +0100
Subject: [PATCH] Worked on new lbmpy module

---
 sympyextensions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sympyextensions.py b/sympyextensions.py
index d3b86fe58..ad52a6ca1 100644
--- a/sympyextensions.py
+++ b/sympyextensions.py
@@ -223,7 +223,7 @@ def makeExponentialFuncArgumentSquares(expr, variablesToCompleteSquares):
             expArg = term.args[0]
             for i in range(dim):
                 expArg, substitution = completeTheSquare(expArg, variablesToCompleteSquares[i], dummies[i])
-            return sp.exp(sp.simplify(expArg))
+            return sp.exp(sp.expand(expArg))
         else:
             paramList = [visit(a) for a in term.args]
             if not paramList:
-- 
GitLab