MFIX-25.1 particle_ouput.csv is missing columns

In the case attached, ran on HPC, the particle_ouput.csv written at the end of the run is missing columns;
I know, why 30 usr_def variable… I needed to allow restart to add manually 5 columns, usr_var after 27 were not written, and i guess v, w neither? (37 written and 42 were expected on restart with the same *.mfx).
simple_shear_prep_bed.zip (8.8 KB).

Interesting that the last data field ends with 0.00 instead of 0.000000
Looks like the line is cut off.

Header has 37 fields and 300 chars:

>>> hdr = 'X,Y,Z,phase_id,diameter,density,U,V,W,usr_var1,usr_var2,usr_var3,usr_var4,usr_var5,usr_var6,usr_var7,usr_var8,usr_var9,usr_var10,usr_var11,usr_var12,usr_var13,usr_var14,usr_var15,usr_var16,usr_var17,usr_var18,usr_var19,usr_var20,usr_var21,usr_var22,usr_var23,usr_var24,usr_var25,usr_var26,usr_var27,u'
>>> len(hdr.split(','))
37
>>>len(hdr)
300

Data has 31 fields and 255 chars:

>>> 
data = '0.000818,0.000392,0.001120,1,0.000785,2500.000000,0.0,0.0,0.0,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.00'
>>> len(data.split(',')
31
>>> len(data)
255

Is there a 255-character limit in the CSV writer? I’ll investigate and get back to you.

particle_output.csv (108.7 KB)

Yes the character variables that write or read the usr_var data is too small to accommodate that many variables. We need to make them dynamically allocatable.