Skip to content
Snippets Groups Projects
Commit 7be1ffea authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Displace box definition checking to avoid hang-up in parallel

parent a95dd48f
No related branches found
No related tags found
1 merge request!116Add tests for EmbeddedIDiscreteFunctionUtils
......@@ -125,7 +125,6 @@ CartesianMeshBuilder::CartesianMeshBuilder(const TinyVector<Dimension>& a,
const TinyVector<Dimension>& b,
const TinyVector<Dimension, uint64_t>& size)
{
if (parallel::rank() == 0) {
TinyVector lenght = b - a;
for (size_t i = 0; i < Dimension; ++i) {
if (lenght[i] == 0) {
......@@ -133,6 +132,7 @@ CartesianMeshBuilder::CartesianMeshBuilder(const TinyVector<Dimension>& a,
}
}
if (parallel::rank() == 0) {
TinyVector<Dimension> corner0 = a;
TinyVector<Dimension> corner1 = b;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment