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

Small fixes

parent 8653ebaf
No related branches found
No related tags found
No related merge requests found
...@@ -18,9 +18,8 @@ private: ...@@ -18,9 +18,8 @@ private:
std::vector<int> ranks; std::vector<int> ranks;
std::vector<int> naabbs; std::vector<int> naabbs;
std::vector<double> aabbs; std::vector<double> aabbs;
real_t *subdom_min; real_t *subdom;
real_t *subdom_max; int world_size, rank, nranks, naabbs;
int world_size, rank, total_aabbs;
bool balance_workload; bool balance_workload;
public: public:
......
...@@ -34,9 +34,9 @@ class DimensionRanges: ...@@ -34,9 +34,9 @@ class DimensionRanges:
def initialize(self): def initialize(self):
grid_array = [(self.sim.grid.min(d), self.sim.grid.max(d)) for d in range(self.sim.ndims())] grid_array = [(self.sim.grid.min(d), self.sim.grid.max(d)) for d in range(self.sim.ndims())]
Call_Void(self.sim, "pairs->initDomain", [param for delim in grid_array for param in delim]) Call_Void(self.sim, "pairs->initDomain", [param for delim in grid_array for param in delim])
Call_Void(self.sim, "pairs->copyRuntimeArray", ['neighbor_ranks', self.neighbor_ranks, sim.ndims() * 2]) Call_Void(self.sim, "pairs->copyRuntimeArray", ['neighbor_ranks', self.neighbor_ranks, self.sim.ndims() * 2])
Call_Void(self.sim, "pairs->copyRuntimeArray", ['pbc', self.pbc, sim.ndims() * 2]) Call_Void(self.sim, "pairs->copyRuntimeArray", ['pbc', self.pbc, self.sim.ndims() * 2])
Call_Void(self.sim, "pairs->copyRuntimeArray", ['subdom', self.subdom, sim.ndims() * 2]) Call_Void(self.sim, "pairs->copyRuntimeArray", ['subdom', self.subdom, self.sim.ndims() * 2])
def ghost_particles(self, step, position, offset=0.0): def ghost_particles(self, step, position, offset=0.0):
# Particles with one of the following flags are ignored # Particles with one of the following flags are ignored
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment