From: Wolfgang Bangerth Date: Sun, 15 Feb 2004 01:58:34 +0000 (+0000) Subject: New tests. X-Git-Tag: v8.0.0~15788 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a7535f0d596648c80e2b411393402a6cba4c9c5;p=dealii.git New tests. git-svn-id: https://svn.dealii.org/trunk@8469 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/petsc_49.cc b/tests/bits/petsc_49.cc new file mode 100644 index 0000000000..8fea52f1bc --- /dev/null +++ b/tests/bits/petsc_49.cc @@ -0,0 +1,86 @@ +//---------------------------- petsc_49.cc --------------------------- +// petsc_11.cc,v 1.4 2003/07/03 10:31:46 guido Exp +// Version: +// +// Copyright (C) 2004 by the deal.II authors and Anna Schneebeli +// +// 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. +// +//---------------------------- petsc_49.cc --------------------------- + + +// check petsc_wrapper::copy_from + +#include "../tests.h" +#include +#include +#include +#include +#include + + +void test (petsc_wrappers::Vector &v) +{ + Vector w (v.size()); + + for (unsigned int i=0; i with T!=PetscScalar + +#include "../tests.h" +#include +#include +#include +#include +#include + + +void test (petsc_wrappers::Vector &v) +{ + Vector w (v.size()); + Vector x (v.size()); + + for (unsigned int i=0; i must be different from + // PetscScalar + v.copy_from (w); + for (unsigned int i=0; i