]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the zorder partitioner in the step-18 test. 18106/head
authorDavid Wells <drwells@email.unc.edu>
Sun, 9 Feb 2025 18:26:28 +0000 (13:26 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sun, 9 Feb 2025 18:26:28 +0000 (13:26 -0500)
This partitioner is both bundled with deal.II - using it provides stable output
since, otherwise, we will use either Zoltan or METIS (depending on what is
installed).

tests/examples/step-18.diff
tests/examples/step-18.mpirun=2.with_petsc=true.output
tests/examples/step-18.mpirun=2.with_petsc=true.output2 [deleted file]

index 527de11c56c43214357ecde65ccd0178599ed733..0d6679ba3838c5dcad00dbd68ae32013bb8dea3d 100644 (file)
@@ -1,32 +1,43 @@
 26a27
 > #include "../example_test.h"
-699c700
+693c694,698
+<     : triangulation(MPI_COMM_WORLD)
+---
+>     : triangulation(
+>         MPI_COMM_WORLD,
+>         {},
+>         false,
+>         parallel::shared::Triangulation<dim>::Settings::partition_zorder)
+699c704
 <     , end_time(10.0)
 ---
 >     , end_time(1.0)
-1088,1089c1089,1091
+1088,1089c1093,1095
 <     pcout << "    Solver converged in " << n_iterations << " iterations."
 <           << std::endl;
 ---
->     //pcout << "    Solver converged in " << n_iterations << " iterations."
->     //      << std::endl;
+>     // pcout << "    Solver converged in " << n_iterations << " iterations."
+>     //       << std::endl;
 >     (void)n_iterations;
-1126,1129c1128,1132
+1126,1129c1132,1139
 <     cg.solve(system_matrix,
 <              distributed_incremental_displacement,
 <              system_rhs,
 <              preconditioner);
 ---
 >     check_solver_within_range(pcout,
->                         cg.solve(system_matrix, distributed_incremental_displacement, system_rhs, preconditioner),
->                         solver_control.last_step(),
->                         114,
->                         130);
-1330c1333
+>                               cg.solve(system_matrix,
+>                                        distributed_incremental_displacement,
+>                                        system_rhs,
+>                                        preconditioner),
+>                               solver_control.last_step(),
+>                               100,
+>                               175);
+1330c1340
 <     output_results();
 ---
->   //output_results();
-1358c1361
+>     // output_results();
+1358c1368
 <     output_results();
 ---
->   //output_results();
+>     // output_results();
index 1bc8081057507dda07cbe3d676659e5394cdd1c3..34ceffa291709a26e038ca5cc5513fbc0b2fefc1 100644 (file)
@@ -1,15 +1,15 @@
 Timestep 1 at time 1
   Cycle 0:
-    Number of active cells:       3712 (by partition: 1972+1740)
-    Number of degrees of freedom: 17226 (by partition: 9396+7830)
+    Number of active cells:       3712 (by partition: 1856+1856)
+    Number of degrees of freedom: 17226 (by partition: 8874+8352)
     Assembling system... norm of rhs is 1.88062e+10
-Solver stopped within 114 - 130 iterations
+Solver stopped within 100 - 175 iterations
     Updating quadrature point data...
   Cycle 1:
-    Number of active cells:       12805 (by partition: 7042+5763)
-    Number of degrees of freedom: 51696 (by partition: 29646+22050)
-    Assembling system... norm of rhs is 1.88062e+10
-Solver stopped within 114 - 130 iterations
+    Number of active cells:       12805 (by partition: 6399+6406)
+    Number of degrees of freedom: 51720 (by partition: 25902+25818)
+    Assembling system... norm of rhs is 1.72532e+10
+Solver stopped within 100 - 175 iterations
     Updating quadrature point data...
     Moving mesh...
 
diff --git a/tests/examples/step-18.mpirun=2.with_petsc=true.output2 b/tests/examples/step-18.mpirun=2.with_petsc=true.output2
deleted file mode 100644 (file)
index d479649..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Timestep 1 at time 1
-  Cycle 0:
-    Number of active cells:       3712 (by partition: 1856+1856)
-    Number of degrees of freedom: 17226 (by partition: 8874+8352)
-    Assembling system... norm of rhs is 1.88062e+10
-Solver stopped after 113 iterations
-    Updating quadrature point data...
-  Cycle 1:
-    Number of active cells:       12805 (by partition: 6399+6406)
-    Number of degrees of freedom: 51720 (by partition: 25902+25818)
-    Assembling system... norm of rhs is 1.72532e+10
-Solver stopped after 151 iterations
-    Updating quadrature point data...
-    Moving mesh...
-

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.