From 7a66711e95a97b3389a29b09aaead8cb18126e80 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 11 Oct 2010 18:21:25 -0400 Subject: Add/fix copyright headers. --- Makefile.am | 2 +- configure.ac | 2 +- src/Makefile.am | 14 +++++++------- src/vZ.hpp | 16 ++++++++-------- src/vZ/Adaptive.hpp | 2 +- src/vZ/BS23.hpp | 2 +- src/vZ/CK45.hpp | 2 +- src/vZ/DP45.hpp | 2 +- src/vZ/EquationSystem.hpp | 2 +- src/vZ/Euler.hpp | 2 +- src/vZ/HE12.hpp | 2 +- src/vZ/Heun.hpp | 2 +- src/vZ/Integrator.hpp | 2 +- src/vZ/Midpoint.hpp | 2 +- src/vZ/RK.hpp | 2 +- src/vZ/RK4.hpp | 2 +- src/vZ/RKF45.hpp | 2 +- src/vZ/Simple.hpp | 2 +- src/vZ/Traits.hpp | 2 +- src/vZ/Vector.hpp | 2 +- tests/BS23.cpp | 24 +++++++++++++++++++++++- tests/CK45.cpp | 24 +++++++++++++++++++++++- tests/DP45.cpp | 24 +++++++++++++++++++++++- tests/EquationSystem.cpp | 24 +++++++++++++++++++++++- tests/Euler.cpp | 23 ++++++++++++++++++++++- tests/HE12.cpp | 24 +++++++++++++++++++++++- tests/Heun.cpp | 23 ++++++++++++++++++++++- tests/Makefile.am | 14 +++++++------- tests/Midpoint.cpp | 23 ++++++++++++++++++++++- tests/RK4.cpp | 23 ++++++++++++++++++++++- tests/RKF45.cpp | 24 +++++++++++++++++++++++- tests/Vector.cpp | 24 +++++++++++++++++++++++- 32 files changed, 289 insertions(+), 51 deletions(-) diff --git a/Makefile.am b/Makefile.am index ef36208..bfe37a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ ########################################################################### -## Copyright (C) 2009-2010 Tavian Barnes ## +## Copyright (C) 2010 Tavian Barnes ## ## ## ## This file is part of The vZ Build Suite. ## ## ## diff --git a/configure.ac b/configure.ac index 0a53d5c..93aff50 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -dnl Copyright (C) 2009-2010 Tavian Barnes +dnl Copyright (C) 2010 Tavian Barnes dnl dnl This file is part of The vZ Build Suite. dnl diff --git a/src/Makefile.am b/src/Makefile.am index 7db29dc..6bee8e1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,16 +1,16 @@ ########################################################################### -## Copyright (C) 2009-2010 Tavian Barnes ## +## Copyright (C) 2010 Tavian Barnes ## ## ## -## This file is part of The Dimension Build Suite. ## +## This file is part of The vZ Build Suite. ## ## ## -## The Dimension Build Suite is free software; you can redistribute it ## -## and/or modify it under the terms of the GNU General Public License as ## +## The vZ Build Suite is free software; you can redistribute it and/or ## +## modify it under the terms of the GNU General Public License as ## ## published by the Free Software Foundation; either version 3 of the ## ## License, or (at your option) any later version. ## ## ## -## The Dimension Build Suite 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 ## +## The vZ Build Suite 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 ## ## General Public License for more details. ## ## ## ## You should have received a copy of the GNU General Public License ## diff --git a/src/vZ.hpp b/src/vZ.hpp index 1b2ba29..03fae7a 100644 --- a/src/vZ.hpp +++ b/src/vZ.hpp @@ -1,16 +1,16 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * - * This file is part of The Dimension Library. * + * This file is part of The vZ Library. * * * - * The Dimension Library 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 3 of the * + * The vZ Library 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 3 of the * * License, or (at your option) any later version. * * * - * The Dimension Library 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 * + * The vZ Library 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. * * * * You should have received a copy of the GNU Lesser General Public * diff --git a/src/vZ/Adaptive.hpp b/src/vZ/Adaptive.hpp index 05fc439..f0cfed1 100644 --- a/src/vZ/Adaptive.hpp +++ b/src/vZ/Adaptive.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/BS23.hpp b/src/vZ/BS23.hpp index f81cad1..90cb9e6 100644 --- a/src/vZ/BS23.hpp +++ b/src/vZ/BS23.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/CK45.hpp b/src/vZ/CK45.hpp index 333e451..401b720 100644 --- a/src/vZ/CK45.hpp +++ b/src/vZ/CK45.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/DP45.hpp b/src/vZ/DP45.hpp index 343bd72..692a77e 100644 --- a/src/vZ/DP45.hpp +++ b/src/vZ/DP45.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/EquationSystem.hpp b/src/vZ/EquationSystem.hpp index 5a50f6d..9b80c30 100644 --- a/src/vZ/EquationSystem.hpp +++ b/src/vZ/EquationSystem.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/Euler.hpp b/src/vZ/Euler.hpp index ba53b98..226545e 100644 --- a/src/vZ/Euler.hpp +++ b/src/vZ/Euler.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/HE12.hpp b/src/vZ/HE12.hpp index 48d63ec..b004245 100644 --- a/src/vZ/HE12.hpp +++ b/src/vZ/HE12.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/Heun.hpp b/src/vZ/Heun.hpp index 7de2f40..d53d27e 100644 --- a/src/vZ/Heun.hpp +++ b/src/vZ/Heun.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/Integrator.hpp b/src/vZ/Integrator.hpp index cb9649a..902fe97 100644 --- a/src/vZ/Integrator.hpp +++ b/src/vZ/Integrator.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/Midpoint.hpp b/src/vZ/Midpoint.hpp index 071e589..6b2f6c3 100644 --- a/src/vZ/Midpoint.hpp +++ b/src/vZ/Midpoint.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/RK.hpp b/src/vZ/RK.hpp index a832779..97ab487 100644 --- a/src/vZ/RK.hpp +++ b/src/vZ/RK.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/RK4.hpp b/src/vZ/RK4.hpp index 0eb680e..ab59570 100644 --- a/src/vZ/RK4.hpp +++ b/src/vZ/RK4.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/RKF45.hpp b/src/vZ/RKF45.hpp index 5c558b7..b617e28 100644 --- a/src/vZ/RKF45.hpp +++ b/src/vZ/RKF45.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/Simple.hpp b/src/vZ/Simple.hpp index 5e4f7f8..211acd6 100644 --- a/src/vZ/Simple.hpp +++ b/src/vZ/Simple.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/Traits.hpp b/src/vZ/Traits.hpp index 76294ea..2c1496e 100644 --- a/src/vZ/Traits.hpp +++ b/src/vZ/Traits.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/src/vZ/Vector.hpp b/src/vZ/Vector.hpp index cf3bf0a..66b9a68 100644 --- a/src/vZ/Vector.hpp +++ b/src/vZ/Vector.hpp @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes * + * Copyright (C) 2010 Tavian Barnes * * * * This file is part of The vZ Library. * * * diff --git a/tests/BS23.cpp b/tests/BS23.cpp index e3b9f6f..cdd2b9a 100644 --- a/tests/BS23.cpp +++ b/tests/BS23.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,10 @@ int main() { vZ::BS23Integrator integrator(f); - integrator.tol(1e-6).y(1.0).x(0.0).h(0.03); + integrator.tol(1e-6) + .y(1.0) + .x(0.0) + .h(0.03); integrator.integrate(2.0); diff --git a/tests/CK45.cpp b/tests/CK45.cpp index e726bc6..62f4870 100644 --- a/tests/CK45.cpp +++ b/tests/CK45.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,10 @@ int main() { vZ::CK45Integrator integrator(f); - integrator.tol(1e-6).y(1.0).x(0.0).h(0.06); + integrator.tol(1e-6) + .y(1.0) + .x(0.0) + .h(0.06); integrator.integrate(2.0); diff --git a/tests/DP45.cpp b/tests/DP45.cpp index 5faa78a..5d6cb43 100644 --- a/tests/DP45.cpp +++ b/tests/DP45.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,10 @@ int main() { vZ::DP45Integrator integrator(f); - integrator.tol(1e-6).y(1.0).x(0.0).h(0.06); + integrator.tol(1e-6) + .y(1.0) + .x(0.0) + .h(0.06); integrator.integrate(2.0); diff --git a/tests/EquationSystem.cpp b/tests/EquationSystem.cpp index 497a065..b1fed00 100644 --- a/tests/EquationSystem.cpp +++ b/tests/EquationSystem.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -23,7 +42,10 @@ main() y[0] = 1.0; y[1] = 1.0; vZ::GenericDP45Integrator integrator(f); - integrator.tol(1e-6).y(y).x(0.0).h(0.06); + integrator.tol(1e-6) + .y(y) + .x(0.0) + .h(0.06); integrator.integrate(2.0); diff --git a/tests/Euler.cpp b/tests/Euler.cpp index 89c2e05..d5de734 100644 --- a/tests/Euler.cpp +++ b/tests/Euler.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,9 @@ int main() { vZ::EulerIntegrator integrator(f); - integrator.y(1.0).x(0.0).h(0.01); + integrator.y(1.0) + .x(0.0) + .h(0.01); integrator.integrate(2.0); diff --git a/tests/HE12.cpp b/tests/HE12.cpp index 99b4ad3..20b37f2 100644 --- a/tests/HE12.cpp +++ b/tests/HE12.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,10 @@ int main() { vZ::HE12Integrator integrator(f); - integrator.tol(1e-6).y(1.0).x(0.0).h(0.02); + integrator.tol(1e-6) + .y(1.0) + .x(0.0) + .h(0.02); integrator.integrate(2.0); diff --git a/tests/Heun.cpp b/tests/Heun.cpp index fca782e..739a42f 100644 --- a/tests/Heun.cpp +++ b/tests/Heun.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,9 @@ int main() { vZ::HeunIntegrator integrator(f); - integrator.y(1.0).x(0.0).h(0.02); + integrator.y(1.0) + .x(0.0) + .h(0.02); integrator.integrate(2.0); diff --git a/tests/Makefile.am b/tests/Makefile.am index 745562c..d072e35 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,16 +1,16 @@ ########################################################################### -## Copyright (C) 2009-2010 Tavian Barnes ## +## Copyright (C) 2010 Tavian Barnes ## ## ## -## This file is part of The Dimension Build Suite. ## +## This file is part of The vZ Build Suite. ## ## ## -## The Dimension Build Suite is free software; you can redistribute it ## -## and/or modify it under the terms of the GNU General Public License as ## +## The vZ Build Suite is free software; you can redistribute it and/or ## +## modify it under the terms of the GNU General Public License as ## ## published by the Free Software Foundation; either version 3 of the ## ## License, or (at your option) any later version. ## ## ## -## The Dimension Build Suite 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 ## +## The vZ Build Suite 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 ## ## General Public License for more details. ## ## ## ## You should have received a copy of the GNU General Public License ## diff --git a/tests/Midpoint.cpp b/tests/Midpoint.cpp index eae0fef..385adc4 100644 --- a/tests/Midpoint.cpp +++ b/tests/Midpoint.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,9 @@ int main() { vZ::MidpointIntegrator integrator(f); - integrator.y(1.0).x(0.0).h(0.02); + integrator.y(1.0) + .x(0.0) + .h(0.02); integrator.integrate(2.0); diff --git a/tests/RK4.cpp b/tests/RK4.cpp index c6faba1..8e2f43e 100644 --- a/tests/RK4.cpp +++ b/tests/RK4.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,9 @@ int main() { vZ::RK4Integrator integrator(f); - integrator.y(1.0).x(0.0).h(0.04); + integrator.y(1.0) + .x(0.0) + .h(0.04); integrator.integrate(2.0); diff --git a/tests/RKF45.cpp b/tests/RKF45.cpp index a3cd259..61f7949 100644 --- a/tests/RKF45.cpp +++ b/tests/RKF45.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,10 @@ int main() { vZ::RKF45Integrator integrator(f); - integrator.tol(1e-6).y(1.0).x(0.0).h(0.06); + integrator.tol(1e-6) + .y(1.0) + .x(0.0) + .h(0.06); integrator.integrate(2.0); diff --git a/tests/Vector.cpp b/tests/Vector.cpp index 7f53352..e1ef4dd 100644 --- a/tests/Vector.cpp +++ b/tests/Vector.cpp @@ -1,3 +1,22 @@ +/************************************************************************* + * Copyright (C) 2010 Tavian Barnes * + * * + * This file is part of The vZ Test Suite. * + * * + * The vZ Test Suite is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 3 of the * + * License, or (at your option) any later version. * + * * + * The vZ Test Suite 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 * + * General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + *************************************************************************/ + #include "vZ.hpp" #include #include @@ -15,7 +34,10 @@ int main() { vZ::GenericDP45Integrator > integrator(f); - integrator.tol(1e-6).y(vZ::Vector<3>(1.0, 1.0, 1.0)).x(0.0).h(0.06); + integrator.tol(1e-6) + .y(vZ::Vector<3>(1.0, 1.0, 1.0)) + .x(0.0) + .h(0.06); integrator.integrate(2.0); -- cgit v1.2.3