Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121642579
AbstractOdeSolver.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 12, 18:23
Size
735 B
Mime Type
text/x-c
Expires
Mon, Jul 14, 18:23 (2 d)
Engine
blob
Format
Raw Data
Handle
27365459
Attached To
R9360 PCSC_git
AbstractOdeSolver.cpp
View Options
/*
* AbstractOdeSolver.cpp
*
* Created on: Oct 25, 2012
* Author: rpopescu
*/
#include "AbstractOdeSolver.hpp"
AbstractOdeSolver
::
AbstractOdeSolver
()
:
stepSize
(),
initialTime
(),
finalTime
(),
initialValue
(),
f_rhs
(
0
)
{}
AbstractOdeSolver
::~
AbstractOdeSolver
()
{}
void
AbstractOdeSolver
::
SetStepSize
(
const
double
h
)
{
stepSize
=
h
;
}
void
AbstractOdeSolver
::
SetTimeInterval
(
const
double
t0
,
const
double
t1
)
{
initialTime
=
t0
;
finalTime
=
t1
;
}
void
AbstractOdeSolver
::
SetInitialValue
(
const
double
y0
)
{
initialValue
=
y0
;
}
void
AbstractOdeSolver
::
SetRightHandSide
(
double
(
*
f
)(
double
y
,
double
t
))
{
f_rhs
=
f
;
}
double
AbstractOdeSolver
::
RightHandSide
(
double
y
,
double
t
)
const
{
return
f_rhs
(
y
,
t
);
}
Event Timeline
Log In to Comment