Skip to content

Commit

Permalink
Node grid consistency check
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfWeeber committed Jul 30, 2019
1 parent 9e06fd6 commit cc13cfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/grid_based_algorithms/LbWalberla.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ LbWalberla::LbWalberla(double viscosity, double density, double agrid,
}
}
m_grid_dimensions = grid_dimensions;
printf("grid: %d %d %d, node: %d %d %d\n",grid_dimensions[0],grid_dimensions[1],grid_dimensions[2],node_grid[0],node_grid[1],node_grid[2]);

m_blocks = blockforest::createUniformBlockGrid(
uint_c(node_grid[0]), // blocks in x direction
Expand All @@ -83,7 +84,7 @@ LbWalberla::LbWalberla(double viscosity, double density, double agrid,
real_c(1.0), // Lattice constant
uint_c(node_grid[0]), uint_c(node_grid[1]),
uint_c(node_grid[2]), // cpus per direction
true, true, true, true);
true, true, true);

m_force_field_id = field::addToStorage<vector_field_t>(
m_blocks, "force field", math::Vector3<real_t>{0, 0, 0}, field::zyxf,
Expand Down

0 comments on commit cc13cfb

Please sign in to comment.