cmdline parser segfaults due to use of std::string char *

Pointer goes out of scope and is destroyed, but char * is
referenced in cmd line options.

Quick hack to get things working for course.
Add netCDF IO test

Test runs swe_simple, then passes the output to a test program which checks
the size of the data generated.