JJPPeters / clTEM

OpenCL accelerated multislice simulation for electron microscopy.
https://jjppeters.github.io/clTEM/
13 stars 3 forks source link

Proper error checking and handling #83

Closed JJPPeters closed 5 years ago

JJPPeters commented 5 years ago

Proper error checking and handling is required to help users understand the problems and report them. Currently only a few errors/exceptions are handled properly. As such, the simulation may crash with no information. This makes troubleshooting almost impossible.

It would also be good to have a debug log (that perhaps could be toggled on and off) to further help identify any problems.

JJPPeters commented 5 years ago

I think I have decided, for the most part, that the errors will be sent using something like std::cout to be put into a log file or the terminal (probably as an option). So the simulation will still crash (as most errors arent recoverable from), but there should be a log of what went wrong.

JJPPeters commented 5 years ago

This may want to be reopened later to get improved logging and error catching. But for now I see this as sufficient.