Fix (and test) all the snippets; closes #823

This commit is contained in:
Ian Bell
2015-09-30 21:57:29 -06:00
parent 5d5f56fbdb
commit ddec0be08e
6 changed files with 46 additions and 46 deletions

View File

@@ -74,7 +74,7 @@ AbstractState * AbstractState::factory(const std::string &backend, const std::ve
{
throw ValueError("TREND backend not yet implemented");
}
else if (!backend.compare("?"))
else if (!backend.compare("?") || backend.empty())
{
std::size_t idel = fluid_names[0].find("::");
// Backend has not been specified, and we have to figure out what the backend is by parsing the string