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
5b549e3d
Commit
5b549e3d
authored
Nov 05, 2019
by
HEMERY Mathieu
Browse files
Add a seed in the header of output file to ensure reproductibility
parent
ba243e57
Changes
1
Hide whitespace changes
Inline
Side-by-side
hybrid.pl
View file @
5b549e3d
...
...
@@ -109,8 +109,10 @@ hybrid_static_simulation(ODEFilename, StochFilename, OutFilename, Volume, Time)
nl
(
Stream
)
),
_
),
format
(
Stream
,
"% Hybrid version of ~w and ~w ~n"
,
ODEFilename
,
StochFilename
),
write
(
Stream
,
'parameter(tau = 0).'
),
nl
(
Stream
),
Seed
is
0
,
format
(
Stream
,
"seed(~d).~n"
,
[
Seed
]),
write
(
Stream
,
'parameter(ran = '
),
write
(
Stream
,
Seed
),
write
(
Stream
,
').'
),
nl
(
Stream
),
...
...
@@ -1170,8 +1172,10 @@ hybrid_dynamic_simulation(InputFile,OutFilename,Volume,Time,PropTresh,PartTresh)
sort
(
Reactants1
,
SortedReactants
),
% Used for later hybrid-reactants finding and constraints lists
sort
(
Species1
,
SortedSpecies
),
format
(
Stream
,
"% Hybrid version of ~w~n"
,
InputFile
),
write
(
Stream
,
'parameter(tau = 0).'
),
nl
(
Stream
),
Seed
is
0
,
format
(
Stream
,
"seed(~d).~n"
,
[
Seed
]),
write
(
Stream
,
'parameter(ran = '
),
write
(
Stream
,
Seed
),
write
(
Stream
,
').'
),
nl
(
Stream
),
...
...
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