Skip to content
Snippets Groups Projects
Commit c6cfd889 authored by Rafael Ravedutti's avatar Rafael Ravedutti
Browse files

Small fixes

parent 5cede1a5
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ void vtk_write_data(PairsSimulation *ps, const char *filename, int start, int en
ps->copyPropertyToHost(masses, ReadOnly);
ps->copyPropertyToHost(positions, ReadOnly);
ps->copyPropertyToHost(flags, ReadOnly);
for(int i = start; i < end; i++) {
if(flags(i) & FLAGS_INFINITE) {
......
......@@ -47,7 +47,7 @@ class Comm:
# Every property that is not constant across timesteps and have neighbor accesses during any
# interaction kernel (i.e. property[j] in force calculation kernel)
prop_names = ['position', 'linear_velocity', 'angular_velocity']
prop_list = [ self.sim.property(p) for p in prop_names if self.sim.property(p) is not None]
prop_list = [self.sim.property(p) for p in prop_names if self.sim.property(p) is not None]
PackAllGhostParticles(self, prop_list)
CommunicateAllData(self, prop_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment