diff --git a/src/rod3d.cc b/src/rod3d.cc index b2a4c93406eec95267c2c976210a263e1838fa05..4f2f86f550d2fa54fb38a7a21389491fb7eb7a14 100644 --- a/src/rod3d.cc +++ b/src/rod3d.cc @@ -33,10 +33,12 @@ int main (int argc, char *argv[]) try // parse data file ParameterTree parameterSet; - if (argc==2) - ParameterTreeParser::readINITree(argv[1], parameterSet); - else - ParameterTreeParser::readINITree("rod3d.parset", parameterSet); + if (argc < 2) + DUNE_THROW(Exception, "Usage: ./rod3d <parameter file>"); + + ParameterTreeParser::readINITree(argv[1], parameterSet); + + ParameterTreeParser::readOptions(argc, argv, parameterSet); // read solver settings const int numLevels = parameterSet.get<int>("numLevels");