//---------------------------- petsc_49.cc ---------------------------
-// check PETScWrappers::copy_from<PetscScalar>
+// check PETScWrappers::operator = (Vector<PetscVector>)
#include "../tests.h"
#include <lac/petsc_vector.h>
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
//---------------------------- 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>
// 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());
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());