Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #10028

Factors Inhibiting Reproducability Of Simulation Results

From Chris Gordon-Smith <use.address@my.homepage>
Newsgroups comp.lang.c++
Subject Factors Inhibiting Reproducability Of Simulation Results
Date 2011-09-10 14:26 +0000
Message-ID <9d1acbF38fU2@mid.individual.net> (permalink)

Show all headers | View raw


I just managed to get my artificial chemistry simulation producing the 
same results when I run it twice with the same parameters. Perhaps some  
members of the group will be interested in the two factors that led to 
differing results:

1)   My graphics library (GTKMM2) calling rand() at random times between 
the calls made by my code
2)   My code storing pointers in an std::set, and then iterating over the 
set. The ordering is dependent on the memory locations of the dynamically 
allocated objects to which the pointers point.

Chris Gordon-Smith
www.simsoup.info

Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Factors Inhibiting Reproducability Of Simulation Results Chris Gordon-Smith <use.address@my.homepage> - 2011-09-10 14:26 +0000
  Re: Factors Inhibiting Reproducability Of Simulation Results "Paul" <pchristor@yahoo.co.uk> - 2011-09-10 17:04 +0100
  Re: Factors Inhibiting Reproducability Of Simulation Results Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-09-11 20:41 +0000
    Re: Factors Inhibiting Reproducability Of Simulation Results Miles Bader <miles@gnu.org> - 2011-09-12 10:02 +0900

csiph-web