GOMC-WSU / GOMC

GOMC - GPU Optimized Monte Carlo is a parallel molecular simulation code designed for high-performance simulation of large systems
https://gomc-wsu.org
MIT License
76 stars 36 forks source link

Better Error Checking of PSF Files #491

Open LSchwiebert opened 1 year ago

LSchwiebert commented 1 year ago

Is your feature request related to a problem? Please describe.

GOMC currently does not check that the PSF file contains all the required dihedrals. This results in a segfault if a needed dihedral has been omitted.

Describe the solution you'd like

The code should check, based on the moves, which dihedrals are needed. If any are missing, it should generate an appropriate error message and exit.

Describe alternatives you've considered

None. But the current behavior is clearly not user-friendly, as a segfault provides minimal information on the cause.

Additional context

N/A

LSchwiebert commented 1 year ago

Note: This is related to issue #404, so it could be closed as a duplicate.