From: heister Date: Tue, 3 Jul 2012 15:37:57 +0000 (+0000) Subject: test TrilinosWrappers::Vector::swap() (test fails) X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=491c5c8b6d59d9f0e0be7b52578fd11ce49af462;p=dealii-svn.git test TrilinosWrappers::Vector::swap() (test fails) git-svn-id: https://svn.dealii.org/trunk@25667 0785d39b-7218-0410-832d-ea1e28bc413d --- 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