Skip to content
Snippets Groups Projects
Commit 4f9f3bcc authored by Kutscher's avatar Kutscher
Browse files

fixes laminar plane flow config-file; adds exception for odd number of nodes

parent f886bedd
No related branches found
No related tags found
1 merge request!346cpu/core update
pathname = ./output/LaminarPlaneFlow
numOfThreads = 18
numOfThreads = 1
blocknx = 16 16 1
boundingBox = 32 32 1
boundingBox = 64 64 1
deltax = 1
refineLevel = 0
refineLevel = 1
newStart = true
restartStep = 1000000
cpStep = 1000000
cpStepStart = 1000000
cpStep = 1000000
cpStart = 1000000
outTime = 10
endTime = 10
......@@ -59,6 +59,10 @@ 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)
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");
UBLOG(logDEBUG5, block->toString());
......
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