This commit is contained in:
Joshua Coles 2023-02-19 16:52:56 +00:00
parent 0ae7892998
commit 323e821344
4 changed files with 1003 additions and 2100 deletions

View File

@ -19,19 +19,6 @@ bool DLASystem::Update() {
return false;
}
if (!lastParticleIsActive) {
for (int i = 0; i < numParticles; ++i) {
this->csv_out << this->particleList[i]->pos[0] << "," << this->particleList[i]->pos[1];
if (i != numParticles - 1) {
this->csv_out << ",";
}
}
this->csv_out << "\n";
this->csv_out.flush();
}
return true;
}
@ -211,6 +198,9 @@ void DLASystem::moveLastParticle() {
// check if we stick
if (checkStick()) {
this->csv_out << newpos[0] << "," << newpos[1] << "\n";
this->csv_out.flush();
//cout << "stick" << endl;
setParticleInactive(); // make the particle inactive (stuck)
updateClusterRadius(lastP->pos); // update the cluster radius, addCircle, etc.

BIN
run

Binary file not shown.

3086
seed-2.csv

File diff suppressed because one or more lines are too long

1
seed-2.json Normal file

File diff suppressed because one or more lines are too long