waveMethod called from inverseDistanceCellCellStencil returns error for empty source processors
Summary
inverseDistanceCellCellStencil calls waveMethod::calculate(tgtMesh, srcMesh, tgtToSrcAddr) which then calls
FaceCellWave<meshToMeshData, meshToMeshData::trackData> calc
(
src,
changedFaces,
changedFacesInfo,
faceData,
cellData,
src.globalData().nTotalCells(), // max iterations
td
);
which will return an error when src.globalData().nTotalCells() is 0. A solution is to add 1 (works for me) or maybe, more logical, make a max(1,src.globalData().nTotalCells())
What is the current bug behaviour?
returns error
Maximum number of iterations reached. Increase maxIter.
What is the expected correct behavior?
overset runs
Environment information
I think hierarchical is particularly sensible to this issue.
Possible fixes
mentioned above
PS: I'm not sure I can get this error for the "standard" code, as I haven't tested if empty src is possible. I'm using a modified B-box inverseDistance scheme...
Edited by Louis