NBodySim::NBodySim(std::istream & s) { load_default_settings(); load_settings(s); initialize(); }
NBodySim::NBodySim(unsigned int n_particles, unsigned int n_steps, const std::string& simulator) { load_default_settings(); m_n_particles = n_particles; m_n_steps = n_steps; m_simulator = simulator; initialize(); }
Errcode open_default_flx(void) /* resets settings to default values in fli (default_name) and creates * an empty tflx for these settings at current fli window size */ { Errcode err; Vset_flidef fdef; if((err = load_default_settings(&fdef)) >= Success) { err = empty_tempflx(Max(fdef.frame_count,1)); flix.hdr.speed = fdef.speed; } return(err); }