Skip to content

Commit

Permalink
Fix initialisation of vector transmission model where multiple specie…
Browse files Browse the repository at this point in the history
…s are present.

This appears to be quite significant in some tests!
  • Loading branch information
dhardy committed Jul 5, 2015
1 parent 35d99a1 commit 84ecb75
Show file tree
Hide file tree
Showing 12 changed files with 60,694 additions and 60,693 deletions.
3 changes: 2 additions & 1 deletion model/Transmission/VectorModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ SimTime VectorModel::initIterate () {

bool needIterate = false;
for (size_t i = 0; i < numSpecies; ++i) {
needIterate = needIterate || species[i].initIterate ();
bool result = species[i].initIterate (); // run for all species
needIterate = needIterate || result; // set true if any species requires another iteration
}
if( needIterate == false ){
initIterations = -1;
Expand Down
732 changes: 366 additions & 366 deletions test/expected/ctsoutMSAT.txt

Large diffs are not rendered by default.

2,924 changes: 1,462 additions & 1,462 deletions test/expected/ctsoutNoInterv.txt

Large diffs are not rendered by default.

2,924 changes: 1,462 additions & 1,462 deletions test/expected/ctsoutNoMPDLarviciding.txt

Large diffs are not rendered by default.

2,924 changes: 1,462 additions & 1,462 deletions test/expected/ctsoutSimpleMPDLarviciding.txt

Large diffs are not rendered by default.

2,924 changes: 1,462 additions & 1,462 deletions test/expected/ctsoutVecFullTest.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 84ecb75

Please sign in to comment.