Current error reporting: Write an error to the logfile and crash the program
Updated error handling
Provide the ability to report warnings and errors - across SOILWAT2, rSOILWAT2, and STEPWAT2
Do not immediately report messages (and crash on error); instead: store messages, return on error early, report messages in main() (or where appropriate), and free memory as needed before exiting
Provide this functionality for both single and (in the future) multi-threaded/process runs
Make sure the number of messages does not get large enough to cause memory problems
Addressing this issue will also satisfy #359 (Prevent memory leaks during error/early exist)
Current error reporting: Write an error to the logfile and crash the program
Updated error handling
main()
(or where appropriate), and free memory as needed before exitingAddressing this issue will also satisfy #359 (Prevent memory leaks during error/early exist)