From e0bb29e54fb390151e51e9a01996a9324457b64b Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Tue, 16 Jun 2026 16:14:11 -0700 Subject: [PATCH] Revert "Protect against multiple specification of same inputs option (#3309)" This reverts commit 0d276fe7c779fa86b61bf3a5f836b8a36ce044bf. --- Source/ERF.cpp | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/Source/ERF.cpp b/Source/ERF.cpp index 037c80f73..29acbf42f 100644 --- a/Source/ERF.cpp +++ b/Source/ERF.cpp @@ -2901,50 +2901,6 @@ ERF::ReadParameters () ParameterSanityChecks(); } -void CheckForDuplicateInputs () -{ - amrex::ParmParse pp; - const auto& tbl = pp.table(); - - bool found = false; - - for (const auto& [full_name, entry] : tbl) - { - std::string prefix; - std::string name; - - auto pos = full_name.find('.'); - - if (pos != std::string::npos) - { - prefix = full_name.substr(0, pos); - name = full_name.substr(pos + 1); - } - else - { - prefix = "global"; - name = full_name; - } - - if (entry.m_vals.size() > 1) - { - found = true; - - amrex::Print() << "Duplicate input: "; - - if (prefix == "global") - amrex::Print() << name; - else - amrex::Print() << prefix << "." << name; - - amrex::Print() << " (" << entry.m_vals.size() << " occurrences)\n"; - } - } - - if (found) - amrex::Abort("Duplicate inputs detected"); -} - // Read in some parameters from inputs file void ERF::ParameterSanityChecks () @@ -3010,8 +2966,6 @@ ERF::ParameterSanityChecks () if (solverChoice.coupling_type == CouplingType::TwoWay && cf_width > 0) { Abort("For two-way coupling you must set cf_width = 0"); } - - CheckForDuplicateInputs(); } // Create horizontal average quantities for 5 variables: