]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the naming of some function arguments. 15585/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 2 Jul 2023 03:32:12 +0000 (21:32 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 2 Jul 2023 03:32:12 +0000 (21:32 -0600)
include/deal.II/lac/trilinos_epetra_communication_pattern.h
include/deal.II/lac/trilinos_tpetra_communication_pattern.h
source/lac/trilinos_epetra_communication_pattern.cc
source/lac/trilinos_tpetra_communication_pattern.cc

index a6665cf499dfe3197b97ebc0edd2b9ae2366e25d..bfcc6b78cddc95dfb66f449e18207eed584f0971 100644 (file)
@@ -53,11 +53,21 @@ namespace LinearAlgebra
                            const MPI_Comm  communicator);
 
       /**
-       * Reinitialize the object.
+       * Reinitialize the communication pattern.
+       *
+       * @param[in] locally_owned_indices The set of indices of elements
+       *   in the array mentioned in the class documentation that are
+       *   stored on the current process.
+       * @param[in] ghost_indices The set of indices of elements in the
+       *   array mentioned in the class documentation that the current
+       *   process will need to be able to import.
+       * @param[in] communicator The MPI communicator used to describe the
+       *   entire set of processes that participate in the storage and
+       *   access to elements of the array.
        */
       virtual void
-      reinit(const IndexSet &vector_space_vector_index_set,
-             const IndexSet &read_write_vector_index_set,
+      reinit(const IndexSet &locally_owned_indices,
+             const IndexSet &ghost_indices,
              const MPI_Comm  communicator) override;
 
       /**
index 3826de0142fe471f9683025efc8d674c305425c1..19d5da6c00115ebde09482bcc30b0df206b13f71 100644 (file)
@@ -52,11 +52,21 @@ namespace LinearAlgebra
                            const MPI_Comm  communicator);
 
       /**
-       * Reinitialize the object.
+       * Reinitialize the communication pattern.
+       *
+       * @param[in] locally_owned_indices The set of indices of elements
+       *   in the array mentioned in the class documentation that are
+       *   stored on the current process.
+       * @param[in] ghost_indices The set of indices of elements in the
+       *   array mentioned in the class documentation that the current
+       *   process will need to be able to import.
+       * @param[in] communicator The MPI communicator used to describe the
+       *   entire set of processes that participate in the storage and
+       *   access to elements of the array.
        */
       virtual void
-      reinit(const IndexSet &vector_space_vector_index_set,
-             const IndexSet &read_write_vector_index_set,
+      reinit(const IndexSet &locally_owned_indices,
+             const IndexSet &ghost_indices,
              const MPI_Comm  communicator) override;
 
       /**
index 5b121cabb89782bd29f11cc51a4eec391fa68fd2..4260d90cc69e7b461193a19467604eda66b8e2aa 100644 (file)
@@ -45,16 +45,16 @@ namespace LinearAlgebra
 
 
     void
-    CommunicationPattern::reinit(const IndexSet &vector_space_vector_index_set,
-                                 const IndexSet &read_write_vector_index_set,
+    CommunicationPattern::reinit(const IndexSet &locally_owned_indices,
+                                 const IndexSet &ghost_indices,
                                  const MPI_Comm  communicator)
     {
       comm = std::make_shared<const MPI_Comm>(communicator);
 
       Epetra_Map vector_space_vector_map =
-        vector_space_vector_index_set.make_trilinos_map(*comm, false);
+        locally_owned_indices.make_trilinos_map(*comm, false);
       Epetra_Map read_write_vector_map =
-        read_write_vector_index_set.make_trilinos_map(*comm, true);
+        ghost_indices.make_trilinos_map(*comm, true);
 
       // Target map is read_write_vector_map
       // Source map is vector_space_vector_map. This map must have uniquely
index 0ec7ad4c1c14de8fcfb923693df51fb85aa02d72..b4a77450f1351a1309ab97f1581920ddc20a04f9 100644 (file)
@@ -45,18 +45,18 @@ namespace LinearAlgebra
 
 
     void
-    CommunicationPattern::reinit(const IndexSet &vector_space_vector_index_set,
-                                 const IndexSet &read_write_vector_index_set,
+    CommunicationPattern::reinit(const IndexSet &locally_owned_indices,
+                                 const IndexSet &ghost_indices,
                                  const MPI_Comm  communicator)
     {
       comm = std::make_shared<const MPI_Comm>(communicator);
 
       auto vector_space_vector_map =
         Teuchos::rcp(new Tpetra::Map<int, types::signed_global_dof_index>(
-          vector_space_vector_index_set.make_tpetra_map(*comm, false)));
+          locally_owned_indices.make_tpetra_map(*comm, false)));
       auto read_write_vector_map =
         Teuchos::rcp(new Tpetra::Map<int, types::signed_global_dof_index>(
-          read_write_vector_index_set.make_tpetra_map(*comm, true)));
+          ghost_indices.make_tpetra_map(*comm, true)));
 
       // Target map is read_write_vector_map
       // Source map is vector_space_vector_map. This map must have uniquely

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.