Skip to content
Snippets Groups Projects
Commit 9240451b authored by Kutscher's avatar Kutscher
Browse files

fixes exception for odd number of nodes

parent b41c3f79
No related branches found
No related tags found
1 merge request!346cpu/core update
......@@ -83,7 +83,7 @@ void run(string configname)
pressureBC2->setBCStrategy(SPtr<BCStrategy>(new PressureNonEquilibrium()));
//////////////////////////////////////////////////////////////////////////////////
//BS visitor
//BC visitor
BoundaryConditionsBlockVisitor bcVisitor;
SPtr<Grid3D> grid(new Grid3D(comm));
......
......@@ -60,7 +60,7 @@ void SetInterpolationConnectorsBlockVisitor::visit(SPtr<Grid3D> grid, SPtr<Block
if(!block) return;
UbTupleInt3 blockNX = grid->getBlockNX();
if (val<1>(blockNX) % 2 == 0 && val<2>(blockNX) % 2 == 0 && val<3>(blockNX) % 2 == 0)
if (val<1>(blockNX) % 2 != 0 && val<2>(blockNX) % 2 != 0 && val<3>(blockNX) % 2 != 0)
UB_THROW(UbException(UB_EXARGS, "Odd number of nodes: The number of nodes in each dimension (x,y,z) has to be even."));
UBLOG(logDEBUG5, "SetInterpolationConnectorsBlockVisitor::visit() - start");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment