projects
/
VirEvoDyn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1612e2c
)
Implement write_mod and esc_all for non-epitope WF run.
author
Dariusz Murakowski
<murakdar@mit.edu>
Wed, 17 Jun 2015 18:53:43 +0000
(14:53 -0400)
committer
Dariusz Murakowski
<murakdar@mit.edu>
Wed, 17 Jun 2015 18:53:43 +0000
(14:53 -0400)
wf.cpp
patch
|
blob
|
history
diff --git
a/wf.cpp
b/wf.cpp
index
567bd56
..
cd30830
100644
(file)
--- a/
wf.cpp
+++ b/
wf.cpp
@@
-154,9
+154,12
@@
void run(RunParameters &r, unsigned seed) {
for (i=0; i<r.g; ++i) {
P.next_generation(H, rnd, r.useRelative, r.useVerbose);
- P.write_population(popout,i+1);
+ if ((i+1) % r.write_mod == 0) {
+ P.write_population(popout,i+1);
+ }
if (r.runUntilEscape && P.escaped(H)) break;
+ if (r.runUntilEscape_all && P.escaped_all(H)) break;
}