From abca1022c736a36b688260bf7ddab45a3a1f293b Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Tue, 11 Jul 2017 23:18:26 +0200 Subject: [PATCH] Merge with TApplencourt --- src/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity.py b/src/entity.py index 8717a79..f8ce3e1 100644 --- a/src/entity.py +++ b/src/entity.py @@ -478,7 +478,7 @@ class Entity(object): " if (allocated(%s)) then"%(name), " deallocate (%s)"%(name)] if command_line.do_memory: - result += " print *, 'Deallocating %s'"%(name) + result += [ " print *, 'Deallocating %s'"%(name) ] result += [" endif"] @@ -552,7 +552,7 @@ class Entity(object): if command_line.do_memory: tmp = "\n print *, %s, 'Allocating %s(%s)'" d = ','.join(self.dim) - result += tmp % ('size(' + name + ')', name, d) + result += tmp % ('size(' + name + ')', name, d) return result result = [" if (allocated (%s) ) then" % (name)]