Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
c6a4725e
Commit
c6a4725e
authored
Dec 17, 2019
by
HEMERY Mathieu
Browse files
Add the stats option in numerical simulation to control the display of simulation time
parent
0a5534fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
numerical_simulation.pl
View file @
c6a4725e
...
...
@@ -118,7 +118,7 @@ filter(only_extrema).
:-
initial
(
option
(
stochastic_conversion
:
100
)).
:-
initial
(
option
(
stochastic_thresholding
:
1000
)).
:-
initial
(
option
(
filter
:
no_filter
)).
:-
initial
(
option
(
stats
:
no
)).
:-
devdoc
(
'\\section{Commands}'
).
...
...
@@ -126,6 +126,7 @@ filter(only_extrema).
numerical_simulation
:-
biocham_command
,
option
(
time
,
time
,
Time
,
'time horizon of the numerical integration'
),
option
(
stats
,
yesno
,
Stats
,
'display computation time'
),
option
(
method
,
method
,
Method
,
'method for the numerical solver'
),
option
(
error_epsilon_absolute
,
number
,
_ErrorEpsilonAbsolute
,
...
...
@@ -223,7 +224,13 @@ numerical_simulation :-
retractall
(
last_method_rsbk
)
),
statistics
(
runtime
,[
_
,
T
]),
format
(
"Simulation time: ~pms~n"
,[
T
]).
(
Stats
=
yes
->
format
(
"Simulation time: ~pms~n"
,[
T
])
;
true
).
continue
(
Time
)
:-
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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