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):