]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Review 16023/head
authorMarco Feder <marco.feder@sissa.it>
Fri, 22 Sep 2023 07:07:01 +0000 (07:07 +0000)
committerMarco Feder <marco.feder@sissa.it>
Sat, 23 Sep 2023 08:10:03 +0000 (08:10 +0000)
include/deal.II/multigrid/mg_transfer_global_coarsening.h
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h
tests/multigrid-global-coarsening/events_non_nested.cc
tests/multigrid-global-coarsening/events_non_nested.mpirun=1.with_trilinos=true.output [moved from tests/multigrid-global-coarsening/events_non_nested.output with 100% similarity]

index 99fc5835e2f3eff31a79751febc58641dd33e273..96268b1dca8f41646f63d93720cb5943d6f04b38 100644 (file)
@@ -68,35 +68,35 @@ namespace mg
   {
     /**
      * This signal is triggered before and after the call to the actual
-     * evaluationfunction inside RemotePointEvaluation::evaluate_and_process()
+     * evaluation function inside RemotePointEvaluation::evaluate_and_process()
      * during prolongation.
      */
-    boost::signals2::signal<void(const bool before)> evaluation_prolongation;
+    boost::signals2::signal<void(const bool before)> prolongation_cell_loop;
 
     /**
      * This signal is triggered before and after the call to the actual
      * evaluation function inside RemotePointEvaluation::process_and_evaluate()
      * during restriction.
      */
-    boost::signals2::signal<void(const bool before)> evaluation_restriction;
+    boost::signals2::signal<void(const bool before)> restriction_cell_loop;
 
     /**
      * This signal is triggered before and after the call to
      * RemotePointEvaluation::evaluate_and_process() used in
      * MGTwoLevelTransferNonNested::prolongate_and_add(). The difference
-     * with the @p evaluation_prolongation signal is that also the
+     * with the @p prolongation_cell_loop signal is that also the
      * communication phase is included.
      */
-    boost::signals2::signal<void(const bool before)> evaluate_and_process;
+    boost::signals2::signal<void(const bool before)> prolongation;
 
     /**
      * This signal is triggered before and after the call to
      * RemotePointEvaluation::process_and_evaluate() used in
      * MGTwoLevelTransferNonNested::restrict_and_add(). Similarly to
-     * the @p evaluation_restriction signal, also the communication phase is
+     * the @p restriction_cell_loop signal, also the communication phase is
      * included.
      */
-    boost::signals2::signal<void(const bool before)> process_and_evaluate;
+    boost::signals2::signal<void(const bool before)> restriction;
   };
 } // namespace mg
 
@@ -848,28 +848,28 @@ public:
   memory_consumption() const override;
 
   /**
-   * Connect a function to mg::SignalsNonNested::evaluation_restriction.
+   * Connect a function to mg::SignalsNonNested::prolongation_cell_loop.
    */
   boost::signals2::connection
-  connect_evaluation_prolongation(const std::function<void(const bool)> &slot);
+  connect_prolongation_cell_loop(const std::function<void(const bool)> &slot);
 
   /**
-   * Connect a function to mg::SignalsNonNested::evaluation_restriction.
+   * Connect a function to mg::SignalsNonNested::restriction_cell_loop.
    */
   boost::signals2::connection
-  connect_evaluation_restriction(const std::function<void(const bool)> &slot);
+  connect_restriction_cell_loop(const std::function<void(const bool)> &slot);
 
   /**
-   * Connect a function to mg::SignalsNonNested::evaluate_and_process.
+   * Connect a function to mg::SignalsNonNested::prolongation.
    */
   boost::signals2::connection
-  connect_evaluate_and_process(const std::function<void(const bool)> &slot);
+  connect_prolongation(const std::function<void(const bool)> &slot);
 
   /**
-   * Connect a function to mg::SignalsNonNested::process_and_evaluate.
+   * Connect a function to mg::SignalsNonNested::restriction.
    */
   boost::signals2::connection
-  connect_process_and_evaluate(const std::function<void(const bool)> &slot);
+  connect_restriction(const std::function<void(const bool)> &slot);
 
 protected:
   AdditionalData additional_data;
index b00bcfeea8189794a6af7503c7ba38c112c5fba7..d034d4545b72a20bcd13be6dab3f54a95feddad1 100644 (file)
@@ -4942,7 +4942,7 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
   std::vector<value_type> buffer;
 
   const auto evaluation_function = [&](auto &values, const auto &cell_data) {
-    this->signals_non_nested.evaluation_prolongation(true);
+    this->signals_non_nested.prolongation_cell_loop(true);
     std::vector<Number> solution_values;
 
     FEPointEvaluation<n_components, dim, dim, Number> evaluator(*mapping_info,
@@ -4972,14 +4972,14 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
           values[q + cell_data.reference_point_ptrs[cell]] =
             evaluator.get_value(q);
       }
-    this->signals_non_nested.evaluation_prolongation(false);
+    this->signals_non_nested.prolongation_cell_loop(false);
   };
 
-  this->signals_non_nested.evaluate_and_process(true);
+  this->signals_non_nested.prolongation(true);
   rpe.template evaluate_and_process<value_type>(evaluation_point_results,
                                                 buffer,
                                                 evaluation_function);
-  this->signals_non_nested.evaluate_and_process(false);
+  this->signals_non_nested.prolongation(false);
 
   // Weight operator in case some points are owned by multiple cells.
   if (rpe.is_map_unique() == false)
@@ -5121,7 +5121,7 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
 
   const auto evaluation_function = [&](const auto &values,
                                        const auto &cell_data) {
-    this->signals_non_nested.evaluation_restriction(true);
+    this->signals_non_nested.restriction_cell_loop(true);
     std::vector<Number>                               solution_values;
     FEPointEvaluation<n_components, dim, dim, Number> evaluator(*mapping_info,
                                                                 *fe_coarse);
@@ -5151,14 +5151,14 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
           solution_values.size(),
           true);
       }
-    this->signals_non_nested.evaluation_restriction(false);
+    this->signals_non_nested.restriction_cell_loop(false);
   };
 
-  this->signals_non_nested.process_and_evaluate(true);
+  this->signals_non_nested.restriction(true);
   rpe.template process_and_evaluate<value_type>(evaluation_point_results,
                                                 buffer,
                                                 evaluation_function);
-  this->signals_non_nested.process_and_evaluate(false);
+  this->signals_non_nested.restriction(false);
 }
 
 
@@ -5231,9 +5231,9 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
 template <int dim, typename Number>
 boost::signals2::connection
 MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
-  connect_evaluation_prolongation(const std::function<void(const bool)> &slot)
+  connect_prolongation_cell_loop(const std::function<void(const bool)> &slot)
 {
-  return signals_non_nested.evaluation_prolongation.connect(slot);
+  return signals_non_nested.prolongation_cell_loop.connect(slot);
 }
 
 
@@ -5241,9 +5241,9 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
 template <int dim, typename Number>
 boost::signals2::connection
 MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
-  connect_evaluation_restriction(const std::function<void(const bool)> &slot)
+  connect_restriction_cell_loop(const std::function<void(const bool)> &slot)
 {
-  return signals_non_nested.evaluation_restriction.connect(slot);
+  return signals_non_nested.restriction_cell_loop.connect(slot);
 }
 
 
@@ -5251,9 +5251,9 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
 template <int dim, typename Number>
 boost::signals2::connection
 MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
-  connect_evaluate_and_process(const std::function<void(const bool)> &slot)
+  connect_prolongation(const std::function<void(const bool)> &slot)
 {
-  return signals_non_nested.evaluate_and_process.connect(slot);
+  return signals_non_nested.prolongation.connect(slot);
 }
 
 
@@ -5261,9 +5261,9 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
 template <int dim, typename Number>
 boost::signals2::connection
 MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
-  connect_process_and_evaluate(const std::function<void(const bool)> &slot)
+  connect_restriction(const std::function<void(const bool)> &slot)
 {
-  return signals_non_nested.process_and_evaluate.connect(slot);
+  return signals_non_nested.restriction.connect(slot);
 }
 
 
index 723a5a593dc60f23beb7b5a3a8e0a0bfd709c51a..0eace650f6f79bd761a25d9409e47719221efc62 100644 (file)
@@ -104,8 +104,7 @@ test(const unsigned int n_refinements,
     {
       transfers[l + 1] =
         std::make_shared<MGTwoLevelTransferNonNested<dim, VectorType>>();
-      transfers[l + 1]->connect_evaluate_and_process(
-        print_evaluate_and_process);
+      transfers[l + 1]->connect_prolongation(print_evaluate_and_process);
       transfers[l + 1]->reinit(dof_handlers[l + 1],
                                dof_handlers[l],
                                *mappings[l + 1],

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.