Add missing initial particle

This commit is contained in:
Joshua Coles 2023-02-19 19:26:40 +00:00
parent 54d02253ef
commit f323248610
2 changed files with 3 additions and 1 deletions

View File

@ -206,6 +206,8 @@ DLASystem::DLASystem(std::ofstream csv_out, double stickProbability)
// reset initial parameters // reset initial parameters
Reset(); Reset();
this->csv_out << 0 << "," << 0 << "," << 0 << std::endl;
addRatio = 1.2; // how much bigger the addCircle should be, compared to cluster radius addRatio = 1.2; // how much bigger the addCircle should be, compared to cluster radius
killRatio = 1.7; // how much bigger is the killCircle, compared to the addCircle killRatio = 1.7; // how much bigger is the killCircle, compared to the addCircle

View File

@ -23,7 +23,7 @@ int main(int argc, char **argv) {
stickProbability = std::stod(argv[2]); stickProbability = std::stod(argv[2]);
} }
cout << "Seed: " << seed << "Stick P: " << stickProbability << endl; cout << "Seed: " << seed << ", Stick P: " << stickProbability << endl;
std::stringstream str; std::stringstream str;
str << "./out-" << seed << '-' << stickProbability << ".csv"; str << "./out-" << seed << '-' << stickProbability << ".csv";