correct scalar col names: start counting from 1

This commit is contained in:
Michael Krayer 2021-12-16 10:25:16 +01:00
parent 33cc40a095
commit 2465e10b70
1 changed files with 3 additions and 3 deletions

6
ucf.py
View File

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