mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-15 03:03:25 -06:00
Parameters::getLists: remove unused TypeTag tparam
This commit is contained in:
parent
a5b4f827fe
commit
85e48bd157
@ -832,7 +832,7 @@ auto get(bool errorIfNotRegistered)
|
|||||||
* The two arguments besides the TypeTag are assumed to be STL containers which store
|
* The two arguments besides the TypeTag are assumed to be STL containers which store
|
||||||
* std::pair<std::string, std::string>.
|
* std::pair<std::string, std::string>.
|
||||||
*/
|
*/
|
||||||
template <class TypeTag, class Container>
|
template <class Container>
|
||||||
void getLists(Container& usedParams, Container& unusedParams)
|
void getLists(Container& usedParams, Container& unusedParams)
|
||||||
{
|
{
|
||||||
usedParams.clear();
|
usedParams.clear();
|
||||||
|
@ -177,7 +177,7 @@ static inline int setupParameters_(int argc,
|
|||||||
ParamList usedParams;
|
ParamList usedParams;
|
||||||
ParamList unusedParams;
|
ParamList unusedParams;
|
||||||
|
|
||||||
Parameters::getLists<TypeTag>(usedParams, unusedParams);
|
Parameters::getLists(usedParams, unusedParams);
|
||||||
if (!allowUnused && !unusedParams.empty()) {
|
if (!allowUnused && !unusedParams.empty()) {
|
||||||
if (myRank == 0) {
|
if (myRank == 0) {
|
||||||
if (unusedParams.size() == 1)
|
if (unusedParams.size() == 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user