summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/BS23.cpp24
-rw-r--r--tests/CK45.cpp24
-rw-r--r--tests/DP45.cpp24
-rw-r--r--tests/EquationSystem.cpp24
-rw-r--r--tests/Euler.cpp23
-rw-r--r--tests/HE12.cpp24
-rw-r--r--tests/Heun.cpp23
-rw-r--r--tests/Makefile.am14
-rw-r--r--tests/Midpoint.cpp23
-rw-r--r--tests/RK4.cpp23
-rw-r--r--tests/RKF45.cpp24
-rw-r--r--tests/Vector.cpp24
12 files changed, 256 insertions, 18 deletions
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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -23,7 +42,10 @@ main()
y[0] = 1.0;
y[1] = 1.0;
vZ::GenericDP45Integrator<Y> 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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> ##
+## Copyright (C) 2010 Tavian Barnes <tavianator@gmail.com> ##
## ##
-## 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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -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 <tavianator@gmail.com> *
+ * *
+ * 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 <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
#include "vZ.hpp"
#include <cmath>
#include <cstdlib>
@@ -15,7 +34,10 @@ int
main()
{
vZ::GenericDP45Integrator<vZ::Vector<3> > 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);