The Conley-Morse Graphs Software
odetimet.cpp
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2///
3/// @file odetimet.cpp
4///
5/// A generic method for computing a time-t map for ODEs.
6///
7/// @author Pawel Pilarczyk
8///
9/////////////////////////////////////////////////////////////////////////////
10
11// Copyright (C) 1997-2014 by Pawel Pilarczyk.
12//
13// This file is part of my research software package. This is free software:
14// you can redistribute it and/or modify it under the terms of the GNU
15// General Public License as published by the Free Software Foundation,
16// either version 3 of the License, or (at your option) any later version.
17//
18// This software is distributed in the hope that it will be useful,
19// but WITHOUT ANY WARRANTY; without even the implied warranty of
20// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21// GNU General Public License for more details.
22//
23// You should have received a copy of the GNU General Public License
24// along with this software; see the file "license.txt". If not,
25// please, see <https://www.gnu.org/licenses/>.
26
27// Started on October 18, 2008. Last revision: March 24, 2013.
28
29
30#include "config.h"
31#include "odetimet.h"
32
33std::vector<double> MapOdeTimeT::defaultBoundingBox;
34
36//const int MapOdeTimeT::integrationAttempts = 1;
37
38#ifdef CONFIG_ODEBOUNDINGBOX
39
40/// A helper class that initializes the default bounding box for MapOdeTimeT.
41struct MapOdeTimeTInitializerClass
42{
43 template <class Array1, class Array2>
44 MapOdeTimeTInitializerClass (const Array1 &offset,
45 const Array2 &width, int dim, int subdivLevel)
46 {
47 MapOdeTimeT::setPhaseSpace (offset, width, dim, subdivLevel);
48 return;
49 }
50} MapOdeTimeTInitializer (spaceOffset, spaceWidth, spaceDim, finalDepth);
51
52#endif
53
static void setPhaseSpace(const Array1 &offset, const Array2 &width, int dim, int subdivDepth, int stepsBetweenChecks=2)
Sets the phase space for an automatic generation of bounding boxes.
Definition: odetimet.h:536
static int defaultCheckEvery
The default number of steps to check the bounding box.
Definition: odetimet.h:210
static std::vector< double > defaultBoundingBox
The default bounding box to be used if no bounding box is set.
Definition: odetimet.h:203
Choice of configuration settings.
const SpaceOffsetType spaceOffset
An imitation of an array which returns the offset of the rectangular area in the phase space which co...
Definition: p_differ.h:108
const int spaceDim
The dimension of the phase space.
Definition: p_differ.h:48
const SpaceWidthType spaceWidth
An imitation of an array which returns the width of the rectangular area in the phase space which con...
Definition: p_differ.h:128
const int finalDepth
The final depth of subdivisions in the phase space.
Definition: p_differ.h:58
A generic method for computing a time-t map for ODEs.