]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use renamed functions.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 1 Mar 2004 03:21:47 +0000 (03:21 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 1 Mar 2004 03:21:47 +0000 (03:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@8623 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/petsc_49.cc
tests/bits/petsc_50.cc

index 372c292ad3f2e15cd7880969a21a4cd01671cd55..4cc7bd5bd47014b270ab0d2c3c6396048bc3f4ee 100644 (file)
@@ -12,7 +12,7 @@
 //----------------------------  petsc_49.cc  ---------------------------
 
 
-// check PETScWrappers::copy_from<PetscScalar>
+// check PETScWrappers::operator = (Vector<PetscVector>)
 
 #include "../tests.h"
 #include <lac/petsc_vector.h>
@@ -29,7 +29,7 @@ void test (PETScWrappers::Vector &v)
   for (unsigned int i=0; i<w.size(); ++i)
     w(i) = i;
   
-  v.copy_from (w);
+  v = w;
 
   
                                    // make sure we get the expected result
index baa94de1af9997800f98ffd9780fc3c68a1ca17d..288b21fb48e2e95a206e1bc0afc338a61b45ea7a 100644 (file)
@@ -12,7 +12,7 @@
 //----------------------------  petsc_50.cc  ---------------------------
 
 
-// check PETScWrappers::copy_from<T> with T!=PetscScalar
+// check PETScWrappers::operator = (Vector<T>) with T!=PetscScalar
 
 #include "../tests.h"
 #include <lac/petsc_vector.h>
@@ -39,7 +39,7 @@ void test (PETScWrappers::Vector &v)
                                    // two cases, the template argument to
                                    // Vector<T> must be different from
                                    // PetscScalar
-  v.copy_from (w);
+  v = w;
   for (unsigned int i=0; i<v.size(); ++i)
     {
       Assert (w(i) == i, ExcInternalError());
@@ -47,7 +47,7 @@ void test (PETScWrappers::Vector &v)
       Assert (x(i) == i+1, ExcInternalError());
     }
 
-  v.copy_from (x);
+  v = x;
   for (unsigned int i=0; i<v.size(); ++i)
     {
       Assert (w(i) == i, ExcInternalError());

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.