diff --git a/dumux/common/parameters.hh b/dumux/common/parameters.hh index ec8fe73699ccf404d636814e856b1557b212a8b1..1bf9b97c0e2e56757c1d5eecf4179ede46991b77 100644 --- a/dumux/common/parameters.hh +++ b/dumux/common/parameters.hh @@ -222,7 +222,7 @@ public: defaultParams(defaultParamTree()); // parse paramters from the command line - parameterFileName = parseCommandLineArguments(argc, argv); + parameterFileName = parseCommandLineArguments(argc, argv, parameterFileName); // otherwise use the default name (executable name + .input) if (parameterFileName == "") @@ -264,9 +264,9 @@ public: //! \brief parse the arguments given on the command line //! \returns the parameterFileName if one was given otherwise returns empty string - static std::string parseCommandLineArguments(int argc, char **argv) + static std::string parseCommandLineArguments(int argc, char **argv, + std::string parameterFileName = "") { - std::string parameterFileName = ""; for (int i = 1; i < argc; ++i) { if (argv[i][0] != '-' && i == 1)