Working PT with vtk ready output
This commit is contained in:
@@ -69,7 +69,7 @@ void vtkParticle(VtkOptions* o, char* name)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
fprintf(o->fh, "POINTS %s float\n", o->particletracer->totalParticles);
|
||||
fprintf(o->fh, "POINTS %d float\n", o->particletracer->totalParticles);
|
||||
|
||||
|
||||
for (int i = 0; i < o->particletracer->totalParticles; ++i)
|
||||
@@ -82,7 +82,7 @@ void vtkParticle(VtkOptions* o, char* name)
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(o->fh, "CELLS %.0f float\n", o->particletracer->totalParticles);
|
||||
fprintf(o->fh, "CELLS %d %d\n", o->particletracer->totalParticles, 2 * o->particletracer->totalParticles);
|
||||
|
||||
|
||||
for (int i = 0, j = 0; i < o->particletracer->totalParticles; ++i)
|
||||
@@ -94,7 +94,7 @@ void vtkParticle(VtkOptions* o, char* name)
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(o->fh, "CELL_TYPES %.0f\n", o->particletracer->totalParticles);
|
||||
fprintf(o->fh, "CELL_TYPES %d\n", o->particletracer->totalParticles);
|
||||
|
||||
|
||||
for (int i = 0; i < o->particletracer->totalParticles; ++i)
|
||||
|
Reference in New Issue
Block a user