From bdcec84fa80c4ea9688018934586bda768660a9f Mon Sep 17 00:00:00 2001 From: young Date: Sun, 20 Oct 2013 13:49:49 +0000 Subject: [PATCH] Add a missed funky vector test. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31332 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/petsc_scalar_complex/vector_wrap_01.cc | 119 ++++++++++++++++++ .../vector_wrap_01/cmp/generic | 3 + 2 files changed, 122 insertions(+) create mode 100644 tests/petsc_scalar_complex/vector_wrap_01.cc create mode 100644 tests/petsc_scalar_complex/vector_wrap_01/cmp/generic diff --git a/tests/petsc_scalar_complex/vector_wrap_01.cc b/tests/petsc_scalar_complex/vector_wrap_01.cc new file mode 100644 index 0000000000..409e8db749 --- /dev/null +++ b/tests/petsc_scalar_complex/vector_wrap_01.cc @@ -0,0 +1,119 @@ +// --------------------------------------------------------------------- +// $Id: vector_wrap_01.cc +// +// Copyright (C) 2013 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + + +// See comments in tests/petsc/vector_wrap_01.cc + +#include "../tests.h" +#include +#include +#include +#include + + +void test_01 (PETScWrappers::Vector &v, + PETScWrappers::Vector &w) +{ + // set the first vector + for (unsigned int k=0; k (k,0.5*k); + + // copy elements by reference + for (unsigned int k=0; k