]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid variables named 'import', part 2. 15196/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 11 May 2023 17:05:52 +0000 (11:05 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 11 May 2023 17:05:52 +0000 (11:05 -0600)
include/deal.II/lac/read_write_vector.templates.h

index 6019ad8f596f74a5a5c9f7d1b0f9ae7dce6e6413..692f306049258ba0ef91675eca5e44f1596dff72 100644 (file)
@@ -739,13 +739,13 @@ namespace LinearAlgebra
                       "LinearAlgebra::EpetraWrappers::CommunicationPattern."));
       }
 
-    Epetra_Import import(epetra_comm_pattern->get_epetra_import());
+    Epetra_Import import_map(epetra_comm_pattern->get_epetra_import());
 
-    Epetra_FEVector target_vector(import.TargetMap());
+    Epetra_FEVector target_vector(import_map.TargetMap());
 
     if (operation == VectorOperation::insert)
       {
-        const int err = target_vector.Import(multivector, import, Insert);
+        const int err = target_vector.Import(multivector, import_map, Insert);
         AssertThrow(err == 0,
                     ExcMessage("Epetra Import() failed with error code: " +
                                std::to_string(err)));
@@ -760,7 +760,7 @@ namespace LinearAlgebra
       }
     else if (operation == VectorOperation::add)
       {
-        const int err = target_vector.Import(multivector, import, Add);
+        const int err = target_vector.Import(multivector, import_map, Add);
         AssertThrow(err == 0,
                     ExcMessage("Epetra Import() failed with error code: " +
                                std::to_string(err)));
@@ -775,7 +775,7 @@ namespace LinearAlgebra
       }
     else if (operation == VectorOperation::min)
       {
-        const int err = target_vector.Import(multivector, import, Add);
+        const int err = target_vector.Import(multivector, import_map, Add);
         AssertThrow(err == 0,
                     ExcMessage("Epetra Import() failed with error code: " +
                                std::to_string(err)));
@@ -805,7 +805,7 @@ namespace LinearAlgebra
       }
     else if (operation == VectorOperation::max)
       {
-        const int err = target_vector.Import(multivector, import, Add);
+        const int err = target_vector.Import(multivector, import_map, Add);
         AssertThrow(err == 0,
                     ExcMessage("Epetra Import() failed with error code: " +
                                std::to_string(err)));

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.