From a985d7577a6fa23d7057eaf93f127d6f8e75817b Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 22 May 2015 10:05:04 +0200 Subject: [PATCH] Corrected bug with gfortran --- src/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util.py b/src/util.py index b03a50b..191e3cd 100644 --- a/src/util.py +++ b/src/util.py @@ -108,11 +108,11 @@ def dimsize(x): size = str( int(b1) - int(b0) + 1 ) else: if b0.replace('-','').isdigit(): - size = "%s - (%d)"%(b1,int(b0)-1) + size = "(%s) - (%d)"%(b1,int(b0)-1) elif b1.replace('-','').isdigit(): - size = "%d - (%s)"%(int(b1)+1,b0) + size = "(%d) - (%s)"%(int(b1)+1,b0) else: - size = "%s - (%s) + 1"%(b1,b0) + size = "(%s) - (%s) + 1"%(b1,b0) return size def put_info(text,filename):