SIMLIB/C++ 3.09
Loading...
Searching...
No Matches
ni_fw.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2//! \file ni_fw.h Fowler-Warten method
3//
4// Copyright (c) 1996-1997 David Leska
5// Copyright (c) 1998-2004 Petr Peringer
6//
7// This library is licensed under GNU Library GPL. See the file COPYING.
8//
9
10//
11// numerical integration: Fowler-Warten's method
12//
13
14
15#include "simlib.h"
16
17namespace simlib3 {
18
19////////////////////////////////////////////////////////////////////////////
20// class representing the integration method
21//
22class FW : public SingleStepMethod {
23private:
24 bool FW_First; // is method called for first time?
25 Memory Y1, ERR; // auxiliary memories
26protected:
27 static const double prec; // near zero number
28public:
29 FW(const char* name) : // registrate method and name it
30 SingleStepMethod(name),
31 FW_First(true)
32 { /*NOTHING*/ }
33 virtual ~FW() // destructor
34 { /*NOTHING*/ }
35 virtual bool PrepareStep(void) override; // prepare object for integration step
36 virtual void Integrate(void) override; // integration method
37}; // class FW
38
39}
40
41// end of ni_fw.h
42
Memory Y1
Definition: ni_fw.h:25
virtual ~FW()
Definition: ni_fw.h:33
virtual bool PrepareStep(void) override
prepare object for integration step
Definition: ni_fw.cc:305
virtual void Integrate(void) override
Definition: ni_fw.cc:38
static const double prec
Definition: ni_fw.h:27
bool FW_First
Definition: ni_fw.h:24
Memory ERR
Definition: ni_fw.h:25
FW(const char *name)
Definition: ni_fw.h:29
base for single-step integration methods
Definition: simlib.h:1141
Implementation of class CalendarList interface is static - using global functions in SQS namespace.
Definition: algloop.cc:32
Main SIMLIB/C++ interface.