SIMLIB/C++  3.07
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 
17 namespace simlib3 {
18 
19 ////////////////////////////////////////////////////////////////////////////
20 // class representing the integration method
21 //
22 class FW : public SingleStepMethod {
23 private:
24  bool FW_First; // is method called for first time?
25  Memory Y1, ERR; // auxiliary memories
26 protected:
27  static const double prec; // near zero number
28 public:
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 
FW(const char *name)
Definition: ni_fw.h:29
Memory Y1
Definition: ni_fw.h:25
virtual bool PrepareStep(void) override
prepare object for integration step
Definition: ni_fw.cc:305
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
virtual ~FW()
Definition: ni_fw.h:33
static const double prec
Definition: ni_fw.h:27
Memory ERR
Definition: ni_fw.h:25
virtual void Integrate(void) override
Definition: ni_fw.cc:38
Main SIMLIB/C++ interface.
bool FW_First
Definition: ni_fw.h:24