3 bool foundCell = false;
6 const vector& C = mesh_.C()[injectorCell];
7 injectionPosition += 1.0e-9*(C - injectionPosition);
9 foundCell = mesh_.pointInCell
16 reduce(foundCell, orOp<bool>());
18 // Due to the disc injection, the injectionPosition
19 // can be moved outside the domain.
20 // try point injection
24 injectionPosition = it->position(n);
34 if (injectorCell >= 0)
36 const vector& C = mesh_.C()[injectorCell];
37 injectionPosition += 1.0e-6*(C - injectionPosition);
39 foundCell = mesh_.pointInCell
45 reduce(foundCell, orOp<bool>());
47 // if point injection also failed then
48 // find nearest cell and try that one
49 // the point is probably on an edge
53 mesh_.findNearestCell(injectionPosition);
55 if (injectorCell >= 0)
58 const vector& C = mesh_.C()[injectorCell];
59 injectionPosition += 1.0e-9*(C - injectionPosition);
61 foundCell = mesh_.pointInCell
67 reduce(foundCell, orOp<bool>());
72 << "Cannot find injection position "