From 8b7f34ca4087323c48ba82cd5017e17ca825e089 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 23 Jun 2023 08:33:53 -0600 Subject: [PATCH] Remove brittle logic that depends on directory names. --- tests/non_matching/step-70.cc | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/tests/non_matching/step-70.cc b/tests/non_matching/step-70.cc index 0870a2136a..6b84983b35 100644 --- a/tests/non_matching/step-70.cc +++ b/tests/non_matching/step-70.cc @@ -1922,35 +1922,13 @@ main(int argc, char *argv[]) try { std::string prm_file; - if (argc > 1) - prm_file = argv[1]; - else - prm_file = SOURCE_DIR "/step-70.in.prm"; + prm_file = SOURCE_DIR "/step-70.in.prm"; - if (prm_file.find("23") != std::string::npos) - { - StokesImmersedProblemParameters<2, 3> par; - ParameterAcceptor::initialize(prm_file); - - StokesImmersedProblem<2, 3> problem(par); - problem.run(); - } - else if (prm_file.find('3') != std::string::npos) - { - StokesImmersedProblemParameters<3> par; - ParameterAcceptor::initialize(prm_file); + StokesImmersedProblemParameters<2> par; + ParameterAcceptor::initialize(prm_file); - StokesImmersedProblem<3> problem(par); - problem.run(); - } - else - { - StokesImmersedProblemParameters<2> par; - ParameterAcceptor::initialize(prm_file); - - StokesImmersedProblem<2> problem(par); - problem.run(); - } + StokesImmersedProblem<2> problem(par); + problem.run(); } catch (std::exception &exc) { -- 2.39.5