From: Wolfgang Bangerth Date: Fri, 23 Jun 2023 14:33:53 +0000 (-0600) Subject: Remove brittle logic that depends on directory names. X-Git-Tag: v9.5.0-rc1~38^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b7f34ca4087323c48ba82cd5017e17ca825e089;p=dealii.git Remove brittle logic that depends on directory names. --- 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) {