From 491c5c8b6d59d9f0e0be7b52578fd11ce49af462 Mon Sep 17 00:00:00 2001 From: heister Date: Tue, 3 Jul 2012 15:37:57 +0000 Subject: [PATCH] test TrilinosWrappers::Vector::swap() (test fails) git-svn-id: https://svn.dealii.org/trunk@25667 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/trilinos/vector_swap_01.cc | 99 +++++++++++++++++++++++ tests/trilinos/vector_swap_01/cmp/generic | 2 + 2 files changed, 101 insertions(+) create mode 100644 tests/trilinos/vector_swap_01.cc create mode 100644 tests/trilinos/vector_swap_01/cmp/generic diff --git a/tests/trilinos/vector_swap_01.cc b/tests/trilinos/vector_swap_01.cc new file mode 100644 index 0000000000..58ccc7af62 --- /dev/null +++ b/tests/trilinos/vector_swap_01.cc @@ -0,0 +1,99 @@ +//---------------------------- trilinos_vector_assign_01.cc --------------------------- +// $Id: vector_assign_01.cc 24425 2011-09-26 13:53:32Z bangerth $ +// Version: $Name$ +// +// Copyright (C) 2004, 2005, 2008 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------- trilinos_vector_assign_01.cc --------------------------- + +/* + test ::Vector::swap() (currently broken) + */ + + +#include "../tests.h" +#include +#include +#include +#include +#include + +void print(TrilinosWrappers::Vector &v) +{ + deallog << "size= " << v.size() + << " el(0)= " << v(0) + << " l2norm()= " << v.l2_norm() << std::endl; +} + + +void test () +{ + TrilinosWrappers::Vector v(5); + for (unsigned int i=0; i