]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Give a variable a default value to make to compiler happy.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Feb 1999 12:05:28 +0000 (12:05 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Feb 1999 12:05:28 +0000 (12:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@811 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/dof/dof_test.cc
tests/big-tests/dof/dof_test.cc

index 4b34c24914059dac0e7b2cc532faf64166db8ce4..d111755c67986451d5c67bf1a23e30867d65460c 100644 (file)
@@ -142,7 +142,7 @@ void TestCases<dim>::run (ParameterHandler &prm) {
   cout << "    Making grid..." << endl;
 
   string test = prm.get ("Test run");
-  unsigned int test_case;
+  unsigned int test_case = 1;
   if (test=="zoom in") test_case = 1;
   else
     if (test=="ball") test_case = 2;
index 4b34c24914059dac0e7b2cc532faf64166db8ce4..d111755c67986451d5c67bf1a23e30867d65460c 100644 (file)
@@ -142,7 +142,7 @@ void TestCases<dim>::run (ParameterHandler &prm) {
   cout << "    Making grid..." << endl;
 
   string test = prm.get ("Test run");
-  unsigned int test_case;
+  unsigned int test_case = 1;
   if (test=="zoom in") test_case = 1;
   else
     if (test=="ball") test_case = 2;

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.