Skip to content
Snippets Groups Projects
Commit c194c007 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Test the 1-circle and the 10-circle

parent 1c2048c8
No related branches found
No related tags found
No related merge requests found
check_PROGRAMS = \
test-circle \
test-circle-1 \
test-circle-10 \
test-gradient-horrible \
test-gradient-horrible-logarithmic \
test-gradient-identity \
......@@ -13,7 +14,10 @@ check_PROGRAMS = \
test-gradient-sample2 \
test-gradient-trivial
test_circle_SOURCES = test-circle.cc
test_circle_1_SOURCES = test-circle.cc
test_circle_1_CPPFLAGS = $(AM_CPPFLAGS) -DDUNE_TECTONIC_TEST_CIRCLE_SCALE=1
test_circle_10_SOURCES = test-circle.cc
test_circle_10_CPPFLAGS = $(AM_CPPFLAGS) -DDUNE_TECTONIC_TEST_CIRCLE_SCALE=10
test_gradient_horrible_SOURCES = test-gradient-horrible.cc
test_gradient_horrible_logarithmic_SOURCES = test-gradient-horrible-logarithmic.cc
test_gradient_identity_SOURCES = test-gradient-identity.cc
......
/* Assures that a circle never has more than two minima and that the
bisection takes us to one after no more than <iterations> steps */
bisection takes us to one in a single step */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef DUNE_TECTONIC_TEST_CIRCLE_SCALE
#error DUNE_TECTONIC_TEST_CIRCLE_SCALE cannot be unset
#endif
#include <cassert>
#include <boost/format.hpp>
......@@ -36,7 +40,7 @@ int main() {
Bisection const bisection(0.0, 1.0, 1e-12, false, 0);
double scale = 10;
double scale = DUNE_TECTONIC_TEST_CIRCLE_SCALE;
std::vector<SmallVector> minima(4);
std::vector<double> radii = { M_PI / 4.0, 3 * M_PI / 4.0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment