From 378f5d7319f43b7b3531d7f63cb7cd2845ab22e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 14 Apr 2015 15:32:19 +0200 Subject: [PATCH] Make some programs stricter about parameter parsing. This applies to programs which always require at least one parameter. --- examples/compute_eikonal_from_files.cpp | 2 +- examples/compute_initial_state.cpp | 2 +- examples/compute_tof_from_files.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/compute_eikonal_from_files.cpp b/examples/compute_eikonal_from_files.cpp index 8f25c25e5..b583becb2 100644 --- a/examples/compute_eikonal_from_files.cpp +++ b/examples/compute_eikonal_from_files.cpp @@ -60,7 +60,7 @@ try { using namespace Opm; - parameter::ParameterGroup param(argc, argv, false); + parameter::ParameterGroup param(argc, argv); // Read grid. GridManager grid_manager(param.get("grid_filename")); diff --git a/examples/compute_initial_state.cpp b/examples/compute_initial_state.cpp index 3b118c153..4eeec0b25 100644 --- a/examples/compute_initial_state.cpp +++ b/examples/compute_initial_state.cpp @@ -81,7 +81,7 @@ try using namespace Opm; // Setup. - parameter::ParameterGroup param(argc, argv, false); + parameter::ParameterGroup param(argc, argv); std::cout << "--------------- Reading parameters ---------------" << std::endl; const std::string deck_filename = param.get("deck_filename"); Opm::ParserPtr parser(new Opm::Parser() ); diff --git a/examples/compute_tof_from_files.cpp b/examples/compute_tof_from_files.cpp index a029eb625..f0964aaa2 100644 --- a/examples/compute_tof_from_files.cpp +++ b/examples/compute_tof_from_files.cpp @@ -77,7 +77,7 @@ try { using namespace Opm; - parameter::ParameterGroup param(argc, argv, false); + parameter::ParameterGroup param(argc, argv); // Read grid. GridManager grid_manager(param.get("grid_filename"));