Commit c71dc28fde910238b21d35d6c675f281c79856b7
1 parent
fcd164e0
Clear seed vector before setting seed values (otherwise ctobssim will add seed v…
…alues to the vector when called several times)
Showing
1 changed file
with
3 additions
and
0 deletions
src/ctobssim/ctobssim.cpp
| ... | ... | @@ -559,6 +559,9 @@ void ctobssim::free_members(void) |
| 559 | 559 | ***************************************************************************/ |
| 560 | 560 | void ctobssim::get_parameters(void) |
| 561 | 561 | { |
| 562 | + // Initialise seed vector | |
| 563 | + m_rans.clear(); | |
| 564 | + | |
| 562 | 565 | // If there are no observations in container then load them via user |
| 563 | 566 | // parameters |
| 564 | 567 | if (m_obs.size() == 0) { | ... | ... |