Closed Lun4m closed 2 years ago
Have to look into this. I changed the 14 because I added the electrostatic energy to the output, which was disabled by default. Seemed to work locally on my machine, but I'll check it out in a clean environment.
Ok, the problem is
forces are only passed to store_data
if the args.force_output
flag is set. Otherwise None
is sent and the numpy cross product fails.
I will fix this and the formatting bug in the output today.
Seems this is still happening in v1.0.2. 🤔
Oh, yes
the
forces_out if args.force_output else None
need to be changed to just forces_out
now that the logic for file output was moved into store_data
.
Ok fixed for real now in #149
Simply trying to run examples from the tutorials repo I get this error:
which is a bit puzzling, since I never had this error before and neither
positions
norforces
should be empty arrays?If I comment out the
angular_momentum
andtorque
calculation I get:which simply means the 15 in the following line should be set to 14 https://github.com/Cascella-Group-UiO/HyMD/blob/58847618e0558a8a9fc7c56b4261e19380c559fc/hymd/file_io.py#L471