danieljprice / phantom

Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
https://phantomsph.github.io
Other
108 stars 239 forks source link

infile writes but does not read options longer than 20 characters #370

Open danieljprice opened 1 year ago

danieljprice commented 1 year ago

the string length in the input file options is limited to 20 characters, however if a longer string is given to write_inopt then it will be written successfully but not read successfully.

the restriction is reasonable but the problem at the moment is that this occurs silently, without any warning to the user. Hence this situation either needs to be handled correctly, or a warning/fatal error clearly given.