]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
step-32: fix some function calls
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Jun 2013 20:27:32 +0000 (20:27 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Jun 2013 20:27:32 +0000 (20:27 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29768 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/step-32.cc
deal.II/examples/step-32/step-32.prm

index b83a8f51439e928acaaab70d3e2b44ab6958949b..0293847747d5ea232ea7d4d2015e69c493cf1c61 100644 (file)
@@ -71,7 +71,6 @@ namespace LA
 #ifdef USE_PETSC_LA
   using namespace dealii::LinearAlgebraPETSc;
 #else
-//using namespace dealii::LinearAlgebraDealII;
   using namespace dealii::LinearAlgebraTrilinos;
 #endif
 }
@@ -1879,7 +1878,7 @@ namespace Step32
     
     sp.compress();
 
-     stokes_matrix.reinit (stokes_partitioning, sp, MPI_COMM_WORLD);
+    stokes_matrix.reinit (stokes_partitioning, sp, MPI_COMM_WORLD);
 #else
      sp.compress();
     stokes_matrix.reinit (sp);
@@ -1930,7 +1929,7 @@ namespace Step32
 
     sp.compress();
 
-     stokes_matrix.reinit (stokes_partitioning, sp, MPI_COMM_WORLD);
+    stokes_preconditioner_matrix.reinit (stokes_partitioning, sp, MPI_COMM_WORLD);
 #else
      sp.compress();
 
@@ -2136,13 +2135,13 @@ namespace Step32
     setup_temperature_matrices (temperature_partitioning);
 
     stokes_rhs.reinit (stokes_partitioning, MPI_COMM_WORLD);
-    stokes_solution.reinit (stokes_relevant_partitioning, MPI_COMM_WORLD);
+    stokes_solution.reinit (stokes_partitioning, stokes_relevant_partitioning, MPI_COMM_WORLD);
     old_stokes_solution.reinit (stokes_solution);
 
     temperature_rhs.reinit (temperature_partitioning, MPI_COMM_WORLD);
-    temperature_solution.reinit (temperature_relevant_partitioning, MPI_COMM_WORLD);
-    old_temperature_solution.reinit (temperature_solution);
-    old_old_temperature_solution.reinit (temperature_solution);
+    temperature_solution.reinit (temperature_partitioning, temperature_relevant_partitioning, MPI_COMM_WORLD);
+    old_temperature_solution.reinit (temperature_partitioning, temperature_relevant_partitioning, MPI_COMM_WORLD);
+    old_old_temperature_solution.reinit (temperature_partitioning, temperature_relevant_partitioning, MPI_COMM_WORLD);
 
     rebuild_stokes_matrix              = true;
     rebuild_stokes_preconditioner      = true;
index 6c2abfcbee00188e824415b2ff8bb44bbeb5b091..7b9bea8a5bbb07933b5343aa6f4c14706046a652 100644 (file)
@@ -13,7 +13,7 @@ set Initial adaptive refinement         = 2
 
 # The number of global refinement steps performed on the initial coarse mesh,
 # before the problem is first solved there.
-set Initial global refinement           = 5
+set Initial global refinement           = 3
 
 # The number of time steps between each generation of graphical output files.
 set Time steps between graphical output = 50

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.