From: bangerth Date: Mon, 13 Feb 2012 08:52:58 +0000 (+0000) Subject: Unify the headers of the tutorial programs. Also remove the duplicate $Id:$ tags. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=663999311ca85a6a86ab90d417b152367be98a3f;p=dealii-svn.git Unify the headers of the tutorial programs. Also remove the duplicate $Id:$ tags. git-svn-id: https://svn.dealii.org/trunk@25050 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-10/step-10.cc b/deal.II/examples/step-10/step-10.cc index 4f651c1e39..3df41fc02b 100644 --- a/deal.II/examples/step-10/step-10.cc +++ b/deal.II/examples/step-10/step-10.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Ralf Hartmann, University of Heidelberg, 2001 */ /* $Id$ */ /* */ -/* Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2011 by the deal.II authors */ +/* Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-11/step-11.cc b/deal.II/examples/step-11/step-11.cc index a237ffc6ec..0d3c2301cf 100644 --- a/deal.II/examples/step-11/step-11.cc +++ b/deal.II/examples/step-11/step-11.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2001 */ /* $Id$ */ /* */ -/* Copyright (C) 2001, 2002, 2003, 2004, 2006, 2009, 2011 by the deal.II authors */ +/* Copyright (C) 2001, 2002, 2003, 2004, 2006, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-12/step-12.cc b/deal.II/examples/step-12/step-12.cc index bb01119068..354340adf8 100644 --- a/deal.II/examples/step-12/step-12.cc +++ b/deal.II/examples/step-12/step-12.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Guido Kanschat, Texas A&M University, 2009 */ /* $Id$ */ /* */ -/* Copyright (C) 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-13/step-13.cc b/deal.II/examples/step-13/step-13.cc index bd6fee2888..1a00ddf32a 100644 --- a/deal.II/examples/step-13/step-13.cc +++ b/deal.II/examples/step-13/step-13.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2001, 2002 */ /* $Id$ */ /* */ -/* Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 by the deal.II authors */ +/* Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-14/step-14.cc b/deal.II/examples/step-14/step-14.cc index b5d21d969f..ced3a24da9 100644 --- a/deal.II/examples/step-14/step-14.cc +++ b/deal.II/examples/step-14/step-14.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, ETH Zurich, 2002 */ /* $Id$ */ /* */ -/* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-15/step-15.cc b/deal.II/examples/step-15/step-15.cc index 13237fe333..bf86ce174f 100644 --- a/deal.II/examples/step-15/step-15.cc +++ b/deal.II/examples/step-15/step-15.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2002 */ /* $Id$ */ /* */ -/* Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-16/step-16.cc b/deal.II/examples/step-16/step-16.cc index f4510f780a..90c5b8ded9 100644 --- a/deal.II/examples/step-16/step-16.cc +++ b/deal.II/examples/step-16/step-16.cc @@ -1,11 +1,10 @@ -/* $Id$ */ /* Author: Guido Kanschat, University of Heidelberg, 2003 */ /* Baerbel Janssen, University of Heidelberg, 2010 */ /* Wolfgang Bangerth, Texas A&M University, 2010 */ /* $Id$ */ /* */ -/* Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-17/step-17.cc b/deal.II/examples/step-17/step-17.cc index 5d4cfd1456..05790322c7 100644 --- a/deal.II/examples/step-17/step-17.cc +++ b/deal.II/examples/step-17/step-17.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Texas at Austin, 2000, 2004 */ /* $Id$ */ /* */ -/* Copyright (C) 2000, 2004, 2005, 2006, 2007, 2008, 2009, 2011 by the deal.II authors */ +/* Copyright (C) 2000, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-18/step-18.cc b/deal.II/examples/step-18/step-18.cc index e9972f40d7..35a46754e5 100644 --- a/deal.II/examples/step-18/step-18.cc +++ b/deal.II/examples/step-18/step-18.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Texas at Austin, 2000, 2004, 2005 */ /* $Id$ */ /* */ -/* Copyright (C) 2000, 2004, 2005, 2006, 2007, 2008, 2009, 2011 by the deal.II authors */ +/* Copyright (C) 2000, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-19/step-19.cc b/deal.II/examples/step-19/step-19.cc index 50717b36c4..28d2f32d65 100644 --- a/deal.II/examples/step-19/step-19.cc +++ b/deal.II/examples/step-19/step-19.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Luca Heltai, Wolfgang Bangerth, 2005 */ /* $Id$ */ /* */ -/* Copyright (C) 2005, 2006, 2011 by the deal.II authors */ +/* Copyright (C) 2005, 2006, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-2/step-2.cc b/deal.II/examples/step-2/step-2.cc index f04019879f..c9e00366fb 100644 --- a/deal.II/examples/step-2/step-2.cc +++ b/deal.II/examples/step-2/step-2.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ /* $Id$ */ /* */ -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-20/step-20.cc b/deal.II/examples/step-20/step-20.cc index 657ec43458..4f1e083786 100644 --- a/deal.II/examples/step-20/step-20.cc +++ b/deal.II/examples/step-20/step-20.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Texas A&M University, 2005, 2006 */ /* $Id$ */ /* */ -/* Copyright (C) 2005, 2006, 2007, 2008, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2005, 2006, 2007, 2008, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-21/step-21.cc b/deal.II/examples/step-21/step-21.cc index f76379cb92..57cafb4db3 100644 --- a/deal.II/examples/step-21/step-21.cc +++ b/deal.II/examples/step-21/step-21.cc @@ -1,4 +1,3 @@ -/* $Id$ */ /* Author: Yan Li, Wolfgang Bangerth, Texas A&M University, 2006 */ /* $Id$ */ diff --git a/deal.II/examples/step-22/step-22.cc b/deal.II/examples/step-22/step-22.cc index 4bd4239336..4f7f5340ef 100644 --- a/deal.II/examples/step-22/step-22.cc +++ b/deal.II/examples/step-22/step-22.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Texas A&M University, 2008 */ /* $Id$ */ /* */ -/* Copyright (C) 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-23/step-23.cc b/deal.II/examples/step-23/step-23.cc index c5b7cfb4db..c92a5ed653 100644 --- a/deal.II/examples/step-23/step-23.cc +++ b/deal.II/examples/step-23/step-23.cc @@ -1,10 +1,9 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Texas A&M University, 2006 */ /* $Id$ */ /* Version: $Name: $ */ /* */ -/* Copyright (C) 2006, 2007, 2008, 2009, 2011 by the deal.II authors */ +/* Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-24/step-24.cc b/deal.II/examples/step-24/step-24.cc index a4d70c28e8..95807feee6 100644 --- a/deal.II/examples/step-24/step-24.cc +++ b/deal.II/examples/step-24/step-24.cc @@ -1,8 +1,7 @@ -/* $Id$ */ -/* Version: $Name: $ */ -/* */ -/* Copyright (C) 2006, 2007, 2008, 2009, 2011 by the deal.II authors */ -/* Author: Xing Jin, Wolfgang Bangerth, Texas A&M University, 2006 */ +/* Author: Xing Jin, Wolfgang Bangerth, Texas A&M University, 2006 */ + +/* $Id$ */ +/* Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-25/step-25.cc b/deal.II/examples/step-25/step-25.cc index b274cd967f..71bbdb39d4 100644 --- a/deal.II/examples/step-25/step-25.cc +++ b/deal.II/examples/step-25/step-25.cc @@ -1,6 +1,7 @@ -/* $Id$ */ -/* Copyright (C) 2006, 2007, 2008, 2009, 2011 by the deal.II authors */ -/* Author: Ivan Christov, Wolfgang Bangerth, Texas A&M University, 2006 */ +/* Author: Ivan Christov, Wolfgang Bangerth, Texas A&M University, 2006 */ + +/* $Id$ */ +/* Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-26/step-26.cc b/deal.II/examples/step-26/step-26.cc index 6124d3d052..8195177109 100644 --- a/deal.II/examples/step-26/step-26.cc +++ b/deal.II/examples/step-26/step-26.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ /* $Id$ */ /* */ -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2011 by the deal.II authors */ +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-27/step-27.cc b/deal.II/examples/step-27/step-27.cc index b6fc5385dc..e71d4122d5 100644 --- a/deal.II/examples/step-27/step-27.cc +++ b/deal.II/examples/step-27/step-27.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Texas A&M University, 2006, 2007 */ /* $Id$ */ /* */ -/* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-28/step-28.cc b/deal.II/examples/step-28/step-28.cc index 912b89c5d6..1d27bde4bf 100644 --- a/deal.II/examples/step-28/step-28.cc +++ b/deal.II/examples/step-28/step-28.cc @@ -1,7 +1,8 @@ +/* Author: Yaqi Wang, Texas A&M University, 2009, 2010 */ + /* $Id$ */ -/* Version: $Name: $ */ /* */ -/* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors and Yaqi Wang */ +/* Copyright (C) 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-29/step-29.cc b/deal.II/examples/step-29/step-29.cc index 923406c6c2..2e91a0c153 100644 --- a/deal.II/examples/step-29/step-29.cc +++ b/deal.II/examples/step-29/step-29.cc @@ -1,8 +1,7 @@ -/* $Id$ */ /* Author: Moritz Allmaras, Texas A&M University, 2007 */ -/* */ -/* Copyright (C) 2007, 2008, 2010, 2011 by the deal.II authors and M. Allmaras */ +/* $Id$ */ +/* Copyright (C) 2007, 2008, 2010, 2011, 2012 by the deal.II authors and M. Allmaras */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-3/step-3.cc b/deal.II/examples/step-3/step-3.cc index 0738ce162b..6a13779f7b 100644 --- a/deal.II/examples/step-3/step-3.cc +++ b/deal.II/examples/step-3/step-3.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, 1999, Guido Kanschat, 2011 */ /* $Id$ */ /* */ -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-30/step-30.cc b/deal.II/examples/step-30/step-30.cc index bf85b9f58b..8da69df937 100644 --- a/deal.II/examples/step-30/step-30.cc +++ b/deal.II/examples/step-30/step-30.cc @@ -1,10 +1,9 @@ -/* $Id$ */ /* Author: Tobias Leicht, 2007 */ /* $Id$ */ /* Version: $Name$ */ /* */ -/* Copyright (C) 2007, 2008, 2011 by the deal.II authors */ +/* Copyright (C) 2007, 2008, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-31/step-31.cc b/deal.II/examples/step-31/step-31.cc index a87db7bdc0..20379ce8ce 100644 --- a/deal.II/examples/step-31/step-31.cc +++ b/deal.II/examples/step-31/step-31.cc @@ -1,10 +1,9 @@ -/* $Id$ */ /* Author: Martin Kronbichler, Uppsala University, Wolfgang Bangerth, Texas A&M University 2007, 2008 */ /* $Id$ */ /* */ -/* Copyright (C) 2007, 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 8fbf94cacb..04070d8a7a 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Martin Kronbichler, Uppsala University, Wolfgang Bangerth, Texas A&M University, Timo Heister, University of Goettingen, 2008-2011 */ /* */ -/* Copyright (C) 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-33/step-33.cc b/deal.II/examples/step-33/step-33.cc index 901cd5e6bd..936da35231 100644 --- a/deal.II/examples/step-33/step-33.cc +++ b/deal.II/examples/step-33/step-33.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: David Neckels, Boulder, Colorado, 2007, 2008 */ /* $Id$ */ /* */ -/* Copyright (C) 2007, 2008, 2009, 2010, 2011 by the deal.II authors and David Neckels */ +/* Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors and David Neckels */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-34/step-34.cc b/deal.II/examples/step-34/step-34.cc index 2090179ec2..ebb7399541 100644 --- a/deal.II/examples/step-34/step-34.cc +++ b/deal.II/examples/step-34/step-34.cc @@ -1,18 +1,13 @@ -//---------------------------- step-34.cc --------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 2009, 2010, 2011 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. -// -// Authors: Luca Heltai, Cataldo Manigrasso -// -//---------------------------- step-34.cc --------------------------- - +/* Author: Luca Heltai, Cataldo Manigrasso, 2009 */ + +/* $Id$ */ +/* */ +/* Copyright (C) 2009, 2010, 2011, 2012 by 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. */ // @sect3{Include files} diff --git a/deal.II/examples/step-35/step-35.cc b/deal.II/examples/step-35/step-35.cc index 4402ddd083..3e087afd71 100644 --- a/deal.II/examples/step-35/step-35.cc +++ b/deal.II/examples/step-35/step-35.cc @@ -1,8 +1,8 @@ -/* $Id$ */ -/* Version: $Name: $ */ -/* */ -/* Copyright (C) 2007, 2008, 2009, 2010, 2011 by the deal.II authors */ -/* Author: Abner Salgado, Texas A&M University 2009 */ +/* Author: Abner Salgado, Texas A&M University 2009 */ + +/* $Id$ */ +/* */ +/* Copyright (C) 2009, 2010, 2011, 2012 by deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-36/step-36.cc b/deal.II/examples/step-36/step-36.cc index 989ec262de..e098a42ad3 100644 --- a/deal.II/examples/step-36/step-36.cc +++ b/deal.II/examples/step-36/step-36.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Toby D. Young, Polish Academy of Sciences, */ /* Wolfgang Bangerth, Texas A&M University */ /* $Id$*/ /* */ -/* Copyright (C) 2009, 2011 by the deal.II authors */ +/* Copyright (C) 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-37/step-37.cc b/deal.II/examples/step-37/step-37.cc index bbc6b85f0e..de83d5bda0 100644 --- a/deal.II/examples/step-37/step-37.cc +++ b/deal.II/examples/step-37/step-37.cc @@ -1,9 +1,8 @@ -/* $Id$ */ -/* Author: Katharina Kormann, Martin Kronbichler, Uppsala University, 2009 */ +/* Authors: Katharina Kormann, Martin Kronbichler, Uppsala University, 2009 */ /* $Id$ */ /* */ -/* Copyright (C) 2009, 2010 by the deal.II authors */ +/* Copyright (C) 2009, 2010, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-38/step-38.cc b/deal.II/examples/step-38/step-38.cc index 4c56758d54..c393ba37b2 100644 --- a/deal.II/examples/step-38/step-38.cc +++ b/deal.II/examples/step-38/step-38.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Authors: Andrea Bonito, Sebastian Pauletti. */ /* $Id$ */ /* */ -/* Copyright (C) 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-39/step-39.cc b/deal.II/examples/step-39/step-39.cc index 6ad001a369..d1a1607417 100644 --- a/deal.II/examples/step-39/step-39.cc +++ b/deal.II/examples/step-39/step-39.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Guido Kanschat, Texas A&M University, 2009 */ /* $Id$ */ /* */ -/* Copyright (C) 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-4/step-4.cc b/deal.II/examples/step-4/step-4.cc index c8ee7fedba..c7275e145e 100644 --- a/deal.II/examples/step-4/step-4.cc +++ b/deal.II/examples/step-4/step-4.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ /* $Id$ */ /* */ -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ @@ -75,12 +74,12 @@ using namespace dealii; // respectively. Apart from this, // everything is as before. template -class Step4 +class Step4 { public: Step4 (); void run (); - + private: void make_grid (); void setup_system(); @@ -152,11 +151,11 @@ class Step4 // constructor which has default // values for all arguments. template -class RightHandSide : public Function +class RightHandSide : public Function { public: RightHandSide () : Function() {} - + virtual double value (const Point &p, const unsigned int component = 0) const; }; @@ -164,11 +163,11 @@ class RightHandSide : public Function template -class BoundaryValues : public Function +class BoundaryValues : public Function { public: BoundaryValues () : Function() {} - + virtual double value (const Point &p, const unsigned int component = 0) const; }; @@ -211,7 +210,7 @@ class BoundaryValues : public Function // at zero as usual in C and C++. template double RightHandSide::value (const Point &p, - const unsigned int /*component*/) const + const unsigned int /*component*/) const { double return_value = 0; for (unsigned int i=0; i::value (const Point &p, // what we return: template double BoundaryValues::value (const Point &p, - const unsigned int /*component*/) const + const unsigned int /*component*/) const { return p.square(); } @@ -320,7 +319,7 @@ void Step4::make_grid () { GridGenerator::hyper_cube (triangulation, -1, 1); triangulation.refine_global (4); - + std::cout << " Number of active cells: " << triangulation.n_active_cells() << std::endl @@ -352,9 +351,9 @@ void Step4::setup_system () CompressedSparsityPattern c_sparsity(dof_handler.n_dofs()); DoFTools::make_sparsity_pattern (dof_handler, c_sparsity); sparsity_pattern.copy_from(c_sparsity); - + system_matrix.reinit (sparsity_pattern); - + solution.reinit (dof_handler.n_dofs()); system_rhs.reinit (dof_handler.n_dofs()); } @@ -376,7 +375,7 @@ void Step4::setup_system () // way we assemble matrix and right // hand side vector dimension // independently: there is simply no - // difference to the + // difference to the // two-dimensional case. Since the // important objects used in this // function (quadrature formula, @@ -393,8 +392,8 @@ void Step4::setup_system () // don't have to care about most // things. template -void Step4::assemble_system () -{ +void Step4::assemble_system () +{ QGauss quadrature_formula(2); // We wanted to have a non-constant right @@ -420,7 +419,7 @@ void Step4::assemble_system () // us by also giving it the // #update_quadrature_points // flag: - FEValues fe_values (fe, quadrature_formula, + FEValues fe_values (fe, quadrature_formula, update_values | update_gradients | update_quadrature_points | update_JxW_values); @@ -456,7 +455,7 @@ void Step4::assemble_system () typename DoFHandler::active_cell_iterator cell = dof_handler.begin_active(), endc = dof_handler.end(); - + for (; cell!=endc; ++cell) { fe_values.reinit (cell); @@ -529,7 +528,7 @@ void Step4::assemble_system () // making things a lot simpler if one // wants to write code dimension // independently. - + // With the local systems assembled, // the transfer into the global matrix // and right hand side is done exactly @@ -542,12 +541,12 @@ void Step4::assemble_system () system_matrix.add (local_dof_indices[i], local_dof_indices[j], cell_matrix(i,j)); - + system_rhs(local_dof_indices[i]) += cell_rhs(i); } } - + // As the final step in this function, we // wanted to have non-homogeneous boundary // values in this example, unlike the one @@ -580,7 +579,7 @@ void Step4::assemble_system () // function is copied verbatim from the // previous example. template -void Step4::solve () +void Step4::solve () { SolverControl solver_control (1000, 1e-12); SolverCG<> solver (solver_control); @@ -651,10 +650,10 @@ void Step4::output_results () const // additional output, it is the same // as for the previous example. template -void Step4::run () +void Step4::run () { std::cout << "Solving problem in " << dim << " space dimensions." << std::endl; - + make_grid(); setup_system (); assemble_system (); @@ -738,18 +737,18 @@ void Step4::run () // written. By changing it you can get more // information about the innards of the // library. -int main () +int main () { deallog.depth_console (0); { Step4<2> laplace_problem_2d; laplace_problem_2d.run (); } - + { Step4<3> laplace_problem_3d; laplace_problem_3d.run (); } - + return 0; } diff --git a/deal.II/examples/step-40/step-40.cc b/deal.II/examples/step-40/step-40.cc index dbfef4404e..5f1daba4cb 100644 --- a/deal.II/examples/step-40/step-40.cc +++ b/deal.II/examples/step-40/step-40.cc @@ -1,10 +1,9 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Texas A&M University, 2009, 2010 */ /* Timo Heister, University of Goettingen, 2009, 2010 */ /* $Id$ */ /* */ -/* Copyright (C) 2009, 2010, 2011 by Timo Heister and the deal.II authors */ +/* Copyright (C) 2009, 2010, 2011, 2012 by Timo Heister and the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 2431fec161..cba58e4740 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Texas A&M University, 2008 */ /* $Id$ */ /* */ -/* Copyright (C) 2008, 2009, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2008, 2009, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-45/step-45.cc b/deal.II/examples/step-45/step-45.cc index da24f88872..c39e62abf8 100644 --- a/deal.II/examples/step-45/step-45.cc +++ b/deal.II/examples/step-45/step-45.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Markus Buerg, University of Karlsruhe, 2010 */ /* $Id$ */ /* */ -/* Copyright (C) 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-46/step-46.cc b/deal.II/examples/step-46/step-46.cc index 75dc091cfb..24aba9d3c0 100644 --- a/deal.II/examples/step-46/step-46.cc +++ b/deal.II/examples/step-46/step-46.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, Texas A&M University, 2011 */ /* $Id$ */ /* */ -/* Copyright (C) 2011 by the deal.II authors */ +/* Copyright (C) 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-47/step-47.cc b/deal.II/examples/step-47/step-47.cc index af25927973..86f44cd23e 100644 --- a/deal.II/examples/step-47/step-47.cc +++ b/deal.II/examples/step-47/step-47.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2000 */ /* $Id$ */ /* */ -/* Copyright (C) 2011 by the deal.II authors */ +/* Copyright (C) 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-5/step-5.cc b/deal.II/examples/step-5/step-5.cc index 3394ad71bc..82011e8f83 100644 --- a/deal.II/examples/step-5/step-5.cc +++ b/deal.II/examples/step-5/step-5.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */ /* $Id$ */ /* */ -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ @@ -386,9 +385,9 @@ void Step5::setup_system () CompressedSparsityPattern c_sparsity(dof_handler.n_dofs()); DoFTools::make_sparsity_pattern (dof_handler, c_sparsity); sparsity_pattern.copy_from(c_sparsity); - + system_matrix.reinit (sparsity_pattern); - + solution.reinit (dof_handler.n_dofs()); system_rhs.reinit (dof_handler.n_dofs()); } @@ -914,7 +913,7 @@ void Step5::run () // would like to use here. static const HyperBallBoundary boundary; triangulation.set_boundary (0, boundary); - + for (unsigned int cycle=0; cycle<6; ++cycle) { std::cout << "Cycle " << cycle << ':' << std::endl; diff --git a/deal.II/examples/step-6/step-6.cc b/deal.II/examples/step-6/step-6.cc index 657a12ade4..4b6d4a04ef 100644 --- a/deal.II/examples/step-6/step-6.cc +++ b/deal.II/examples/step-6/step-6.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2000 */ /* $Id$ */ /* */ -/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-7/step-7.cc b/deal.II/examples/step-7/step-7.cc index 42c3a0a57b..d2c94aef7a 100644 --- a/deal.II/examples/step-7/step-7.cc +++ b/deal.II/examples/step-7/step-7.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth and Ralf Hartmann, University of Heidelberg, 2000 */ /* $Id$ */ /* */ -/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 by the deal.II authors */ +/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ @@ -124,10 +123,10 @@ namespace Step7 // place of declaration (i.e. where we // declare that such a variable exists). template - class SolutionBase + class SolutionBase { protected: - static const unsigned int n_source_centers = 3; + static const unsigned int n_source_centers = 3; static const Point source_centers[n_source_centers]; static const double width; }; @@ -169,8 +168,8 @@ namespace Step7 template <> const Point<1> SolutionBase<1>::source_centers[SolutionBase<1>::n_source_centers] - = { Point<1>(-1.0 / 3.0), - Point<1>(0.0), + = { Point<1>(-1.0 / 3.0), + Point<1>(0.0), Point<1>(+1.0 / 3.0) }; // Likewise, we can provide an explicit @@ -179,8 +178,8 @@ namespace Step7 template <> const Point<2> SolutionBase<2>::source_centers[SolutionBase<2>::n_source_centers] - = { Point<2>(-0.5, +0.5), - Point<2>(-0.5, -0.5), + = { Point<2>(-0.5, +0.5), + Point<2>(-0.5, -0.5), Point<2>(+0.5, -0.5) }; // There remains to assign a value to the @@ -239,10 +238,10 @@ namespace Step7 { public: Solution () : Function() {} - + virtual double value (const Point &p, const unsigned int component = 0) const; - + virtual Tensor<1,dim> gradient (const Point &p, const unsigned int component = 0) const; }; @@ -284,7 +283,7 @@ namespace Step7 return_value += std::exp(-x_minus_xi.square() / (this->width * this->width)); } - + return return_value; } @@ -336,7 +335,7 @@ namespace Step7 for (unsigned int i=0; in_source_centers; ++i) { const Point x_minus_xi = p - this->source_centers[i]; - + // For the gradient, note that // its direction is along // (x-x_i), so we add up @@ -348,7 +347,7 @@ namespace Step7 (this->width * this->width)) * x_minus_xi); } - + return return_value; } @@ -372,7 +371,7 @@ namespace Step7 { public: RightHandSide () : Function() {} - + virtual double value (const Point &p, const unsigned int component = 0) const; }; @@ -391,11 +390,11 @@ namespace Step7 for (unsigned int i=0; in_source_centers; ++i) { const Point x_minus_xi = p - this->source_centers[i]; - + // The first contribution is // the Laplacian: return_value += ((2*dim - 4*x_minus_xi.square()/ - (this->width * this->width)) / + (this->width * this->width)) / (this->width * this->width) * std::exp(-x_minus_xi.square() / (this->width * this->width))); @@ -404,7 +403,7 @@ namespace Step7 return_value += std::exp(-x_minus_xi.square() / (this->width * this->width)); } - + return return_value; } @@ -437,20 +436,20 @@ namespace Step7 // the number of the refinement cycle, and // consequently gets it as an argument. template - class HelmholtzProblem + class HelmholtzProblem { public: enum RefinementMode { global_refinement, adaptive_refinement }; - + HelmholtzProblem (const FiniteElement &fe, const RefinementMode refinement_mode); ~HelmholtzProblem (); void run (); - + private: void setup_system (); void assemble_system (); @@ -710,7 +709,7 @@ namespace Step7 // This is no different than before: template - HelmholtzProblem::~HelmholtzProblem () + HelmholtzProblem::~HelmholtzProblem () { dof_handler.clear (); } @@ -734,7 +733,7 @@ namespace Step7 // library. It requires only a single // line of code. Some more information // on this can be found in step-2. - // + // // Note, however, that when you // renumber the degrees of freedom, // you must do so immediately after @@ -812,8 +811,8 @@ namespace Step7 // face quadrature formula is then // straightforward: template - void HelmholtzProblem::assemble_system () - { + void HelmholtzProblem::assemble_system () + { QGauss quadrature_formula(3); QGauss face_quadrature_formula(3); @@ -826,7 +825,7 @@ namespace Step7 Vector cell_rhs (dofs_per_cell); std::vector local_dof_indices (dofs_per_cell); - + // Then we need objects which can // evaluate the values, gradients, // etc of the shape functions at @@ -873,11 +872,11 @@ namespace Step7 // (see below). The class that gives // us this information is called // FEFaceValues: - FEValues fe_values (*fe, quadrature_formula, + FEValues fe_values (*fe, quadrature_formula, update_values | update_gradients | update_quadrature_points | update_JxW_values); - FEFaceValues fe_face_values (*fe, face_quadrature_formula, + FEFaceValues fe_face_values (*fe, face_quadrature_formula, update_values | update_quadrature_points | update_normal_vectors | update_JxW_values); @@ -915,7 +914,7 @@ namespace Step7 // would to go other ways here, of // course. const Solution exact_solution; - + // Now for the main loop over all // cells. This is mostly unchanged // from previous examples, so we @@ -933,7 +932,7 @@ namespace Step7 right_hand_side.value_list (fe_values.get_quadrature_points(), rhs_values); - + for (unsigned int q_point=0; q_pointrun() function further // below. (The // default value of boundary @@ -1048,7 +1047,7 @@ namespace Step7 system_matrix.add (local_dof_indices[i], local_dof_indices[j], cell_matrix(i,j)); - + system_rhs(local_dof_indices[i]) += cell_rhs(i); } } @@ -1094,7 +1093,7 @@ namespace Step7 // Solving the system of equations is // done in the same way as before: template - void HelmholtzProblem::solve () + void HelmholtzProblem::solve () { SolverControl solver_control (1000, 1e-12); SolverCG<> cg (solver_control); @@ -1174,7 +1173,7 @@ namespace Step7 template void HelmholtzProblem::refine_grid () { - switch (refinement_mode) + switch (refinement_mode) { case global_refinement: { @@ -1196,7 +1195,7 @@ namespace Step7 GridRefinement::refine_and_coarsen_fixed_number (triangulation, estimated_error_per_cell, 0.3, 0.03); - + triangulation.execute_coarsening_and_refinement (); break; @@ -1263,7 +1262,7 @@ namespace Step7 // of that value. This is // equivalent to taking the l2 // (lower case l) norm of the - // vector of norms on each cell: + // vector of norms on each cell: Vector difference_per_cell (triangulation.n_active_cells()); VectorTools::integrate_difference (dof_handler, solution, @@ -1343,8 +1342,8 @@ namespace Step7 // first time. const unsigned int n_active_cells=triangulation.n_active_cells(); const unsigned int n_dofs=dof_handler.n_dofs(); - - std::cout << "Cycle " << cycle << ':' + + std::cout << "Cycle " << cycle << ':' << std::endl << " Number of active cells: " << n_active_cells @@ -1381,7 +1380,7 @@ namespace Step7 // that we want to have part of the // boundary marked as Neumann type, // rather than Dirichlet. - // + // // For this, we will use the // following convention: Faces // belonging to Gamma1 will have the @@ -1434,7 +1433,7 @@ namespace Step7 // refinement step) and refined the // mesh only after that. template - void HelmholtzProblem::run () + void HelmholtzProblem::run () { for (unsigned int cycle=0; cycle<7; ++cycle) { @@ -1457,7 +1456,7 @@ namespace Step7 } else refine_grid (); - + // The next steps are already // known from previous @@ -1465,7 +1464,7 @@ namespace Step7 // basic set-up of every finite // element program: setup_system (); - + assemble_system (); solve (); @@ -1482,9 +1481,9 @@ namespace Step7 // number as an argument. process_solution (cycle); } - + // @sect5{Output of graphical data} - + // After the last iteration we output the // solution on the finest grid. This is // done using the following sequence of @@ -1552,7 +1551,7 @@ namespace Step7 // appropriate for GMV output, open a file, // and add the solution vector to the // object that will do the actual output: - gmv_filename += ".gmv"; + gmv_filename += ".gmv"; std::ofstream output (gmv_filename.c_str()); DataOut data_out; @@ -1624,7 +1623,7 @@ namespace Step7 data_out.write_gmv (output); // @sect5{Output of convergence tables} - + // After graphical output, we would also // like to generate tables from the error // computations we have done in @@ -1632,7 +1631,7 @@ namespace Step7 // filled a table object with the number of // cells for each refinement step as well // as the errors in different norms. - + // For a nicer textual output of this data, // one may want to set the precision with // which the values will be written upon @@ -1688,7 +1687,7 @@ namespace Step7 // above the specific columns. std::cout << std::endl; convergence_table.write_text(std::cout); - + // The table can also be written // into a LaTeX file. The (nicely) // formatted table can be viewed at @@ -1723,13 +1722,13 @@ namespace Step7 default: Assert (false, ExcNotImplemented()); } - + error_filename += ".tex"; std::ofstream error_table_file(error_filename.c_str()); - + convergence_table.write_tex(error_table_file); - + // @sect5{Further table manipulations} // In case of global refinement, it @@ -1765,7 +1764,7 @@ namespace Step7 // cells": convergence_table.add_column_to_supercolumn("cycle", "n cells"); convergence_table.add_column_to_supercolumn("cells", "n cells"); - + // Next, it isn't necessary to // always output all columns, // or in the order in which @@ -1880,7 +1879,7 @@ namespace Step7 // will then only have to change this // one instance, rather than all uses // below: -int main () +int main () { const unsigned int dim = 2; @@ -1888,7 +1887,7 @@ int main () { using namespace dealii; using namespace Step7; - + deallog.depth_console (0); // Now for the three calls to @@ -1912,7 +1911,7 @@ int main () std::cout << "Solving with Q1 elements, adaptive refinement" << std::endl << "=============================================" << std::endl << std::endl; - + FE_Q fe(1); HelmholtzProblem helmholtz_problem_2d (fe, HelmholtzProblem::adaptive_refinement); @@ -1921,12 +1920,12 @@ int main () std::cout << std::endl; } - + { std::cout << "Solving with Q1 elements, global refinement" << std::endl << "===========================================" << std::endl << std::endl; - + FE_Q fe(1); HelmholtzProblem helmholtz_problem_2d (fe, HelmholtzProblem::global_refinement); @@ -1935,12 +1934,12 @@ int main () std::cout << std::endl; } - + { std::cout << "Solving with Q2 elements, global refinement" << std::endl << "===========================================" << std::endl << std::endl; - + FE_Q fe(2); HelmholtzProblem helmholtz_problem_2d (fe, HelmholtzProblem::global_refinement); @@ -1949,7 +1948,7 @@ int main () std::cout << std::endl; } - + } catch (std::exception &exc) { @@ -1963,7 +1962,7 @@ int main () << std::endl; return 1; } - catch (...) + catch (...) { std::cerr << std::endl << std::endl << "----------------------------------------------------" diff --git a/deal.II/examples/step-8/step-8.cc b/deal.II/examples/step-8/step-8.cc index d617f803df..4f05ba00f7 100644 --- a/deal.II/examples/step-8/step-8.cc +++ b/deal.II/examples/step-8/step-8.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2000 */ /* $Id$ */ /* */ -/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ diff --git a/deal.II/examples/step-9/step-9.cc b/deal.II/examples/step-9/step-9.cc index 45ef888159..08a1780616 100644 --- a/deal.II/examples/step-9/step-9.cc +++ b/deal.II/examples/step-9/step-9.cc @@ -1,9 +1,8 @@ -/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2000 */ /* $Id$ */ /* */ -/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011 by the deal.II authors */ +/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2010, 2011, 2012 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */