Clear the sentMessages container in Island and IslandModel in order to use the model more than once (Nils Mangelsen)
This commit is contained in:
parent
23df679f51
commit
bbe3553f47
2 changed files with 6 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ void paradiseo::smp::IslandModel<EOT>::operator()()
|
|||
for(auto& message : sentMessages)
|
||||
message.join();
|
||||
|
||||
// Clear the sentMessages container
|
||||
sentMessages.clear();
|
||||
|
||||
// Force last integration
|
||||
i = 0;
|
||||
for(auto it : islands)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue