diff --git a/src/neighbor.cpp b/src/neighbor.cpp index 386967cd46..14a61371ac 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -1309,6 +1309,7 @@ int Neighbor::choose_stencil(NeighRequest *rq) else if (rq->newton == 2) newtflag = 0; + // use flags to match exactly one of NStencil class masks, bit by bit // exactly one of halfflag,fullflag is set and thus must match @@ -1329,6 +1330,7 @@ int Neighbor::choose_stencil(NeighRequest *rq) if (style == BIN && !(mask & NS_BIN)) continue; if (style == MULTI && !(mask & NS_MULTI)) continue; + if (dimension == 2 && !(mask & NS_2D)) continue; if (dimension == 3 && !(mask & NS_3D)) continue; @@ -1814,6 +1816,7 @@ void Neighbor::build_one(class NeighList *mylist, int preflag) } + // build the list np->build_setup();