]> https://gitweb.dealii.org/ - dealii.git/commitdiff
minor renaming of data members and variables in SLEPc solver 1854/head
authorDenis Davydov <davydden@gmail.com>
Tue, 10 Nov 2015 14:30:57 +0000 (15:30 +0100)
committerDenis Davydov <davydden@gmail.com>
Tue, 10 Nov 2015 14:30:57 +0000 (15:30 +0100)
include/deal.II/lac/slepc_solver.h
source/lac/slepc_solver.cc

index 3228cdd8f4d299527e44a13ea960210f176f06d0..67326cabc3f8f59ea3dbaa5819ee6150922d644b 100644 (file)
@@ -194,7 +194,7 @@ namespace SLEPcWrappers
     template <typename Vector>
     void
     set_initial_space
-    (const std::vector<Vector> &initial_vectors);
+    (const std::vector<Vector> &initial_space);
 
     /**
      * Set the spectral transformation to be used.
@@ -371,7 +371,7 @@ namespace SLEPcWrappers
     /**
      * An initial vector space used in SLEPc solvers.
      */
-    std::vector<Vec> initial_vectors;
+    std::vector<Vec> initial_space;
 
     /**
      * Pointer to an an object that describes transformations that can be
@@ -874,12 +874,12 @@ namespace SLEPcWrappers
 
   template <typename Vector>
   void
-  SolverBase::set_initial_space(const std::vector<Vector> &vectors)
+  SolverBase::set_initial_space(const std::vector<Vector> &this_initial_space)
   {
-    initial_vectors.resize(vectors.size());
-    for (unsigned int i = 0; i < initial_vectors.size(); i++)
+    initial_space.resize(this_initial_space.size());
+    for (unsigned int i = 0; i < initial_space.size(); i++)
       {
-        initial_vectors[i] = vectors[i];
+        initial_space[i] = this_initial_space[i];
       }
   }
 
index a94af05590a07816807e990b753489c7a1c7bd18..6e1e387a76eda6e3c0d84bd23683519f45cd80cd 100644 (file)
@@ -79,8 +79,8 @@ namespace SLEPcWrappers
   void
   SolverBase::set_initial_vector (const PETScWrappers::VectorBase &this_initial_vector)
   {
-    initial_vectors.resize(1);
-    initial_vectors[0] = this_initial_vector;
+    initial_space.resize(1);
+    initial_space[0] = this_initial_vector;
   }
 
   void
@@ -140,13 +140,13 @@ namespace SLEPcWrappers
     AssertThrow (ierr == 0, ExcSLEPcError(ierr));
 
     // set the initial vector(s) if any
-    if (initial_vectors.size() != 0)
+    if (initial_space.size() != 0)
       {
 
 #if DEAL_II_PETSC_VERSION_LT(3,1,0)
-        ierr = EPSSetInitialVector (solver_data->eps, &initial_vectors[0]);
+        ierr = EPSSetInitialVector (solver_data->eps, &initial_space[0]);
 #else
-        ierr = EPSSetInitialSpace (solver_data->eps, initial_vectors.size(), &initial_vectors[0]);
+        ierr = EPSSetInitialSpace (solver_data->eps, initial_space.size(), &initial_space[0]);
 #endif
 
         AssertThrow (ierr == 0, ExcSLEPcError(ierr));

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.