Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
7670830b
Commit
7670830b
authored
Mar 05, 2018
by
SOLIMAN Sylvain
Browse files
hmax from gsl does not actually enforce a maximum step
parent
89a3c0af
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
about.pl
View file @
7670830b
...
...
@@ -8,7 +8,7 @@
about
/
0
]).
version
(
'4.1.
2
'
).
version
(
'4.1.
3
'
).
copyright
(
'Copyright (C) 2003-2018 Inria, EPI Lifeware, Saclay-Île de France, France'
...
...
library/examples/cmsb_2017/sigmoids.ipynb
View file @
7670830b
This diff is collapsed.
Click to expand it.
library/gsl_solver.cc
View file @
7670830b
...
...
@@ -16,7 +16,7 @@ init_gsl_solver(
struct
gsl_solver
*
solver
,
const
struct
gsl_solver_config
*
config
)
{
const
gsl_odeiv2_step_type
*
method
=
config
->
method
;
in
t
variable_count
=
config
->
variable_count
;
size_
t
variable_count
=
config
->
variable_count
;
double
*
p
=
(
double
*
)
xcalloc
(
config
->
parameter_count
,
sizeof
(
double
));
gsl_odeiv2_system
sys
=
{
functions
,
jacobian
,
variable_count
,
p
};
solver
->
sys
=
sys
;
...
...
@@ -86,7 +86,8 @@ gsl_solver_step(struct gsl_solver_state *state)
if
(
t
>=
config
->
time_final
)
{
return
false
;
}
t_upper
=
config
->
time_final
;
// hmax not enough to ensure steps smaller than hmax
t_upper
=
std
::
min
(
config
->
time_final
,
t
+
solver
->
d
->
hmax
);
events
(
state
,
&
t_upper
);
if
(
t_upper
<
t
+
config
->
initial_step_size
)
{
t_upper
=
t
+
config
->
initial_step_size
;
...
...
library/gsl_solver.hh
View file @
7670830b
...
...
@@ -10,7 +10,7 @@
struct
gsl_solver_config
{
in
t
variable_count
;
size_
t
variable_count
;
int
parameter_count
;
int
event_count
;
const
gsl_odeiv2_step_type
*
method
;
...
...
numerical_simulation.pl
View file @
7670830b
...
...
@@ -134,7 +134,7 @@ numerical_simulation :-
),
option
(
maximum_step_size
,
number
,
_MaximumStepSize
,
'maximum step size for the numerical solver, as a fraction of time'
'maximum step size for the numerical solver, as a fraction of
the total
time'
),
option
(
precision
,
number
,
_Precision
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment