]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove brittle logic that depends on directory names. 15370/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 23 Jun 2023 14:33:53 +0000 (08:33 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 23 Jun 2023 14:33:53 +0000 (08:33 -0600)
tests/non_matching/step-70.cc

index 0870a2136a7ce184721eddd2ba9ce625c6741597..6b84983b35f85ba29f5d99e207a7717a793fd1ff 100644 (file)
@@ -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)
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.