]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Tests fixed 17033/head
authorVladimir Yushutin <vyushut@clemson.edu>
Mon, 20 May 2024 16:21:20 +0000 (12:21 -0400)
committerVladimir Yushutin <vyushut@clemson.edu>
Mon, 20 May 2024 16:21:20 +0000 (12:21 -0400)
tests/lac/linear_operator_12.cc
tests/lac/linear_operator_12a.cc
tests/particles/particle_interpolation_01.cc
tests/particles/particle_interpolation_02.cc
tests/particles/particle_interpolation_03.cc
tests/particles/particle_interpolation_04.cc
tests/particles/particle_interpolation_05.cc
tests/trilinos/direct_solver_2.cc
tests/trilinos/direct_solver_3.cc
tests/trilinos_tpetra/direct_solver_01.cc
tests/trilinos_tpetra/direct_solver_02.cc

index 4baf77c06bcf1910e1520faab8f0e1a887ac787e..675bfd291925ad82ab24376facb370b9b6b5f5ae 100644 (file)
@@ -197,7 +197,7 @@ Step4<dim>::setup_system()
   const IndexSet  locally_relevant_dofs =
     DoFTools::extract_locally_relevant_dofs(dof_handler);
 
-  DynamicSparsityPattern dsp(dof_handler.n_dofs());
+  DynamicSparsityPattern dsp(locally_relevant_dofs);
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              locally_owned_dofs,
index 9ce563d1aef1170b1bbe8d5512d758874ee45349..1e80b6298a686f3f94dedcbe7cde658e1ddd492a 100644 (file)
@@ -198,7 +198,7 @@ Step4<dim>::setup_system()
   const IndexSet  locally_relevant_dofs =
     DoFTools::extract_locally_relevant_dofs(dof_handler);
 
-  DynamicSparsityPattern dsp(dof_handler.n_dofs());
+  DynamicSparsityPattern dsp(locally_relevant_dofs);
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              locally_owned_dofs,
index 7960c4c9e5e8930db37400fd9fd3d9a89e13c810..e904c35ec18175d2f25ddffc9c55ffab4f9e08f8 100644 (file)
@@ -88,15 +88,6 @@ test()
             << "Space FE: " << space_fe.get_name() << std::endl
             << "Space dofs: " << space_dh.n_dofs() << std::endl;
 
-  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
-                             space_dh.n_dofs());
-
-  AffineConstraints<double> constraints;
-
-  // Build the interpolation sparsity
-  Particles::Utilities::create_interpolation_sparsity_pattern(
-    space_dh, particle_handler, dsp, constraints, space_mask);
-
   const auto n_local_particles_dofs =
     particle_handler.n_locally_owned_particles() * n_comps;
 
@@ -116,6 +107,16 @@ test()
   auto global_particles_index_set =
     Utilities::MPI::all_gather(MPI_COMM_WORLD, n_local_particles_dofs);
 
+  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
+                             space_dh.n_dofs(),
+                             local_particle_index_set);
+
+  AffineConstraints<double> constraints;
+
+  // Build the interpolation sparsity
+  Particles::Utilities::create_interpolation_sparsity_pattern(
+    space_dh, particle_handler, dsp, constraints, space_mask);
+
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              global_particles_index_set,
                                              MPI_COMM_WORLD,
index 5ceecf786ff7db0cf1dd462929f07918a33c0ae5..c39682da2e8560472b698e597408d4de5028a313 100644 (file)
@@ -92,15 +92,6 @@ test()
             << "Space FE: " << space_fe.get_name() << std::endl
             << "Space dofs: " << space_dh.n_dofs() << std::endl;
 
-  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
-                             space_dh.n_dofs());
-
-  AffineConstraints<double> constraints;
-
-  // Build the interpolation sparsity
-  Particles::Utilities::create_interpolation_sparsity_pattern(
-    space_dh, particle_handler, dsp, constraints, space_mask);
-
   const auto n_local_particles_dofs =
     particle_handler.n_locally_owned_particles() * n_comps;
 
@@ -120,6 +111,16 @@ test()
   auto global_particles_index_set =
     Utilities::MPI::all_gather(MPI_COMM_WORLD, n_local_particles_dofs);
 
+  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
+                             space_dh.n_dofs(),
+                             local_particle_index_set);
+
+  AffineConstraints<double> constraints;
+
+  // Build the interpolation sparsity
+  Particles::Utilities::create_interpolation_sparsity_pattern(
+    space_dh, particle_handler, dsp, constraints, space_mask);
+
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              global_particles_index_set,
                                              MPI_COMM_WORLD,
index 86011bcdd7b13fcacae8839b3a575b3e3d74c27c..8de18e482574620a908bdd44146e30d6bd0fa9d8 100644 (file)
@@ -91,15 +91,6 @@ test()
             << "Space FE: " << space_fe.get_name() << std::endl
             << "Space dofs: " << space_dh.n_dofs() << std::endl;
 
-  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
-                             space_dh.n_dofs());
-
-  AffineConstraints<double> constraints;
-
-  // Build the interpolation sparsity
-  Particles::Utilities::create_interpolation_sparsity_pattern(
-    space_dh, particle_handler, dsp, constraints, space_mask);
-
   const auto n_local_particles_dofs =
     particle_handler.n_locally_owned_particles() * n_comps;
 
@@ -119,6 +110,16 @@ test()
   auto global_particles_index_set =
     Utilities::MPI::all_gather(MPI_COMM_WORLD, n_local_particles_dofs);
 
+  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
+                             space_dh.n_dofs(),
+                             local_particle_index_set);
+
+  AffineConstraints<double> constraints;
+
+  // Build the interpolation sparsity
+  Particles::Utilities::create_interpolation_sparsity_pattern(
+    space_dh, particle_handler, dsp, constraints, space_mask);
+
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              global_particles_index_set,
                                              MPI_COMM_WORLD,
index ffd5b7285611f3ed2f7b687239776e6f97dc8d35..653a1ca3f00218bd03934973c1e344091fc1bcc5 100644 (file)
@@ -86,15 +86,6 @@ test()
             << "Space FE: " << space_fe.get_name() << std::endl
             << "Space dofs: " << space_dh.n_dofs() << std::endl;
 
-  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
-                             space_dh.n_dofs());
-
-  AffineConstraints<double> constraints;
-
-  // Build the interpolation sparsity
-  Particles::Utilities::create_interpolation_sparsity_pattern(
-    space_dh, particle_handler, dsp, constraints, space_mask);
-
   const auto n_local_particles_dofs =
     particle_handler.n_locally_owned_particles() * n_comps;
 
@@ -114,6 +105,16 @@ test()
   auto global_particles_index_set =
     Utilities::MPI::all_gather(MPI_COMM_WORLD, n_local_particles_dofs);
 
+  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
+                             space_dh.n_dofs(),
+                             local_particle_index_set);
+
+  AffineConstraints<double> constraints;
+
+  // Build the interpolation sparsity
+  Particles::Utilities::create_interpolation_sparsity_pattern(
+    space_dh, particle_handler, dsp, constraints, space_mask);
+
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              global_particles_index_set,
                                              MPI_COMM_WORLD,
index 1f2739446a4d85633c38fa0d886310344a2a2773..536d9a5b9a60eef99e0d5297e6b1599162383e33 100644 (file)
@@ -88,15 +88,6 @@ test()
             << "Space FE: " << space_fe.get_name() << std::endl
             << "Space dofs: " << space_dh.n_dofs() << std::endl;
 
-  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
-                             space_dh.n_dofs());
-
-  AffineConstraints<double> constraints;
-
-  // Build the interpolation sparsity
-  Particles::Utilities::create_interpolation_sparsity_pattern(
-    space_dh, particle_handler, dsp, constraints, space_mask);
-
   const auto n_local_particles_dofs =
     particle_handler.n_locally_owned_particles() * n_comps;
 
@@ -116,6 +107,16 @@ test()
   auto global_particles_index_set =
     Utilities::MPI::all_gather(MPI_COMM_WORLD, n_local_particles_dofs);
 
+  DynamicSparsityPattern dsp(particle_handler.n_global_particles() * n_comps,
+                             space_dh.n_dofs(),
+                             local_particle_index_set);
+
+  AffineConstraints<double> constraints;
+
+  // Build the interpolation sparsity
+  Particles::Utilities::create_interpolation_sparsity_pattern(
+    space_dh, particle_handler, dsp, constraints, space_mask);
+
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              global_particles_index_set,
                                              MPI_COMM_WORLD,
index 14991dddedda8bec1397493dd3bc5f788b46e81f..1f3ca1f35eda662fe562212639edf3e4bac67013 100644 (file)
@@ -196,7 +196,7 @@ Step4<dim>::setup_system()
     DoFTools::extract_locally_relevant_dofs(dof_handler);
 
 
-  DynamicSparsityPattern dsp(dof_handler.n_dofs());
+  DynamicSparsityPattern dsp(locally_relevant_dofs);
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              locally_owned_dofs,
index 89190ed6934c5453f9ebe35c9403076a4464c0c5..92770bf1f64de81d92f1c09acc81049ae540403c 100644 (file)
@@ -160,7 +160,7 @@ Step4<dim>::setup_system()
     DoFTools::extract_locally_relevant_dofs(dof_handler);
 
 
-  DynamicSparsityPattern dsp(dof_handler.n_dofs());
+  DynamicSparsityPattern dsp(locally_relevant_dofs);
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              locally_owned_dofs,
index 3c778f74757074d8b20666686e0aa8b2f9508085..04bf70831f7acf175f2ed4ce101f3a11303900b1 100644 (file)
@@ -197,7 +197,7 @@ Step4<dim>::setup_system()
     DoFTools::extract_locally_relevant_dofs(dof_handler);
 
 
-  DynamicSparsityPattern dsp(dof_handler.n_dofs());
+  DynamicSparsityPattern dsp(locally_relevant_dofs);
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              locally_owned_dofs,
index 3c0c4f53f3f164876a24a11935408738a69d1e39..5e01f256793205a6de69a5828dfac949078ae170 100644 (file)
@@ -195,7 +195,7 @@ Step4<dim>::setup_system()
     DoFTools::extract_locally_relevant_dofs(dof_handler);
 
 
-  DynamicSparsityPattern dsp(dof_handler.n_dofs());
+  DynamicSparsityPattern dsp(locally_relevant_dofs);
   DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
   SparsityTools::distribute_sparsity_pattern(dsp,
                                              locally_owned_dofs,

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.