Homec4science

fix issues with potential file parser

Authored by Axel Kohlmeyer <akohlmey@gmail.com> on May 9 2017, 21:35.

Description

fix issues with potential file parser

  • use Force::open_potential()
  • replace ftell()/fseek() with rewind()/fgets() which is safer on windows and other platforms with automatic CR/LF to LF conversion on text files
  • make parser use properly NULL terminated strings through using strtok()

Details

Committed
Axel Kohlmeyer <akohlmey@gmail.com>May 9 2017, 21:35
Pushed
jungeOct 19 2017, 09:53
Parents
rLAMMPS42531389df27: Cleanup of style (removing all tabs, shortened long lines).
Branches
Unknown
Tags
Unknown

Event Timeline

Axel Kohlmeyer <akohlmey@gmail.com> committed rLAMMPS9cd994f57c70: fix issues with potential file parser (authored by Axel Kohlmeyer <akohlmey@gmail.com>).May 9 2017, 21:35