]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid variables named 'import'. 15191/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 10 May 2023 19:08:51 +0000 (13:08 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 10 May 2023 19:08:51 +0000 (13:08 -0600)
source/lac/trilinos_epetra_vector.cc

index a6cecfa5830b868e9f3b531e890329605035712b..5343e808cdc57ccee9947a577df5e90ec1b8f6da 100644 (file)
@@ -178,21 +178,21 @@ namespace LinearAlgebra
               "LinearAlgebra::EpetraWrappers::CommunicationPattern."));
         }
 
-      Epetra_Import import(epetra_comm_pattern->get_epetra_import());
+      Epetra_Import import_map(epetra_comm_pattern->get_epetra_import());
 
       // The TargetMap and the SourceMap have their roles inverted.
-      Epetra_FEVector source_vector(import.TargetMap());
+      Epetra_FEVector source_vector(import_map.TargetMap());
       double *        values = source_vector.Values();
       std::copy(V.begin(), V.end(), values);
 
       if (operation == VectorOperation::insert)
-        vector->Export(source_vector, import, Insert);
+        vector->Export(source_vector, import_map, Insert);
       else if (operation == VectorOperation::add)
-        vector->Export(source_vector, import, Add);
+        vector->Export(source_vector, import_map, Add);
       else if (operation == VectorOperation::max)
-        vector->Export(source_vector, import, Epetra_Max);
+        vector->Export(source_vector, import_map, Epetra_Max);
       else if (operation == VectorOperation::min)
-        vector->Export(source_vector, import, Epetra_Min);
+        vector->Export(source_vector, import_map, Epetra_Min);
       else
         AssertThrow(false, ExcNotImplemented());
     }

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.