mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-30 17:40:08 -05:00
Parameters::printUnused: remove unused TypeTag tparam
This commit is contained in:
1 parent
85e48bd157
commit
6a43a7ef71
2 files changed
+3
-4
No files matched your search
@@ -772,8 +772,7 @@ void printValues(std::ostream& os = std::cout)
|
||||
*
|
||||
* \return true if something was printed
|
||||
*/
|
||||
template <class TypeTag>
|
||||
bool printUnused(std::ostream& os = std::cout)
|
||||
inline bool printUnused(std::ostream& os = std::cout)
|
||||
{
|
||||
std::list<std::string> runTimeAllKeyList;
|
||||
std::list<std::string> unknownKeyList;
|
||||
|
||||
@@ -364,13 +364,13 @@ static inline int start(int argc, char **argv, bool registerParams=true)
|
||||
// always print the list of specified but unused parameters
|
||||
printSeparator =
|
||||
printSeparator ||
|
||||
Parameters::printUnused<TypeTag>();
|
||||
Parameters::printUnused();
|
||||
if (printSeparator)
|
||||
std::cout << endParametersSeparator;
|
||||
}
|
||||
else
|
||||
// always print the list of specified but unused parameters
|
||||
if (Parameters::printUnused<TypeTag>())
|
||||
if (Parameters::printUnused())
|
||||
std::cout << endParametersSeparator;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user