From 2465e10b706afad1735a7056c6e5a133b0608e97 Mon Sep 17 00:00:00 2001 From: Michael Krayer Date: Thu, 16 Dec 2021 10:25:16 +0100 Subject: [PATCH] correct scalar col names: start counting from 1 --- ucf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ucf.py b/ucf.py index 868cbf7..58d8293 100644 --- a/ucf.py +++ b/ucf.py @@ -864,9 +864,9 @@ def colmap_from_flags(irank,ihybrid,idem,iscal): col['tyc'] = ioffset; ioffset+=1 col['tzc'] = ioffset; ioffset+=1 if iscal>0: - for ii in range(0,iscal): - col['s'+str(ii)] = ioffset; ioffset+=1 - col['q'+str(ii)] = ioffset; ioffset+=1 + for ii in range(iscal): + col['s'+str(ii+1)] = ioffset; ioffset+=1 + col['q'+str(ii+1)] = ioffset; ioffset+=1 return col def grid_chunk(chunk,gridg):