The particle _ input.dat file was used to describe the initial position of the particles, but an error occurred

Hello, everyone!
The SQP method simulates non-spherical particles, and there is an error when inputting the initial particle coordinates.
image
0.325.zip (131.8 KB)

The message is correct - your particle input file is too short. The data starts on line 39, you have declared 1000 particles, so the last line should be 1038. Not counting a few blank lines at the end, your file ends at line 1037. Off-by-one error strikes again!

Thank you for your help! @cgw
The problem has been solved!