From ed449c51ed98103c072c76e7a239c040b120c7a6 Mon Sep 17 00:00:00 2001 From: Jonathan Cooper Date: Thu, 23 Feb 2012 10:04:20 +0000 Subject: [PATCH] [template] #1831 - apply BSD licence notice. git-svn-id: https://chaste.cs.ox.ac.uk/svn/chaste/projects/template@14999 b5f69653-2bf5-0310-8201-b0dafb8e1405 --- SConscript | 39 +++++---- apps/src/ExampleApp.cpp | 177 +++++++++++++++++++++------------------- src/Hello.cpp | 39 +++++---- src/Hello.hpp | 39 +++++---- test/TestHello.hpp | 37 +++++---- 5 files changed, 183 insertions(+), 148 deletions(-) diff --git a/SConscript b/SConscript index 0dd9e7c..7d3db23 100644 --- a/SConscript +++ b/SConscript @@ -1,4 +1,5 @@ -"""Copyright (C) University of Oxford, 2005-2012 +"""Copyright (c) 2005-2012, University of Oxford. +All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington @@ -6,21 +7,27 @@ Square, Oxford OX1 2JD, UK. This file is part of Chaste. -Chaste is free software: you can 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. - -Chaste is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. The offer of Chaste under the terms of the -License is subject to the License being interpreted in accordance with -English Law and subject to any action against the University of Oxford -being under the jurisdiction of the English Courts. - -You should have received a copy of the GNU Lesser General Public License -along with Chaste. If not, see . +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the University of Oxford nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ # Example SCons build script for user projects. diff --git a/apps/src/ExampleApp.cpp b/apps/src/ExampleApp.cpp index 0058efa..6a7bb94 100644 --- a/apps/src/ExampleApp.cpp +++ b/apps/src/ExampleApp.cpp @@ -1,85 +1,92 @@ -/* - -Copyright (C) University of Oxford, 2005-2011 - -University of Oxford means the Chancellor, Masters and Scholars of the -University of Oxford, having an administrative office at Wellington -Square, Oxford OX1 2JD, UK. - -This file is part of Chaste. - -Chaste is free software: you can 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. - -Chaste is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. The offer of Chaste under the terms of the -License is subject to the License being interpreted in accordance with -English Law and subject to any action against the University of Oxford -being under the jurisdiction of the English Courts. - -You should have received a copy of the GNU Lesser General Public License -along with Chaste. If not, see . - -*/ - -/** - * @file - * - * This file gives an example of how you can create your own executable - * in a user project. - */ - -#include -#include - -#include "ExecutableSupport.hpp" -#include "Exception.hpp" -#include "PetscTools.hpp" -#include "PetscException.hpp" - -int main(int argc, char *argv[]) -{ - // This sets up PETSc and prints out copyright information, etc. - ExecutableSupport::StandardStartup(&argc, &argv); - - int exit_code = ExecutableSupport::EXIT_OK; - - // You should put all the main code within a try-catch, to ensure that - // you clean up PETSc before quitting. - try - { - if (argc<2) - { - ExecutableSupport::PrintError("Usage: ExampleApp arguments ...", true); - exit_code = ExecutableSupport::EXIT_BAD_ARGUMENTS; - } - else - { - for (int i=1; i +#include + +#include "ExecutableSupport.hpp" +#include "Exception.hpp" +#include "PetscTools.hpp" +#include "PetscException.hpp" + +int main(int argc, char *argv[]) +{ + // This sets up PETSc and prints out copyright information, etc. + ExecutableSupport::StandardStartup(&argc, &argv); + + int exit_code = ExecutableSupport::EXIT_OK; + + // You should put all the main code within a try-catch, to ensure that + // you clean up PETSc before quitting. + try + { + if (argc<2) + { + ExecutableSupport::PrintError("Usage: ExampleApp arguments ...", true); + exit_code = ExecutableSupport::EXIT_BAD_ARGUMENTS; + } + else + { + for (int i=1; i. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the University of Oxford nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ diff --git a/src/Hello.hpp b/src/Hello.hpp index 1402a20..5fb6f25 100644 --- a/src/Hello.hpp +++ b/src/Hello.hpp @@ -1,6 +1,7 @@ /* -Copyright (C) University of Oxford, 2005-2011 +Copyright (c) 2005-2012, University of Oxford. +All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington @@ -8,21 +9,27 @@ Square, Oxford OX1 2JD, UK. This file is part of Chaste. -Chaste is free software: you can 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. - -Chaste is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. The offer of Chaste under the terms of the -License is subject to the License being interpreted in accordance with -English Law and subject to any action against the University of Oxford -being under the jurisdiction of the English Courts. - -You should have received a copy of the GNU Lesser General Public License -along with Chaste. If not, see . +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the University of Oxford nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ diff --git a/test/TestHello.hpp b/test/TestHello.hpp index b88c782..ebf0e68 100644 --- a/test/TestHello.hpp +++ b/test/TestHello.hpp @@ -1,6 +1,7 @@ /* -Copyright (C) University of Oxford, 2005-2011 +Copyright (c) 2005-2012, University of Oxford. +All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington @@ -8,21 +9,27 @@ Square, Oxford OX1 2JD, UK. This file is part of Chaste. -Chaste is free software: you can 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. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the University of Oxford nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. -Chaste is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public -License for more details. The offer of Chaste under the terms of the -License is subject to the License being interpreted in accordance with -English Law and subject to any action against the University of Oxford -being under the jurisdiction of the English Courts. - -You should have received a copy of the GNU Lesser General Public License -along with Chaste. If not, see . +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */