Algorithm 932, PANG: software for nonmatching grid projections in 2D and 3D with linear complexity. We design and analyze an algorithm with linear complexity to perform projections between 2D and 3D nonmatching grids. This algorithm, named the PANG algorithm, is based on an advancing front technique and neighboring information. Its implementation is surprisingly short, and we give the entire MATLAB code. For computing the intersections, we use a direct and numerically robust approach. We show numerical experiments both for 2D and 3D grids, which illustrate the optimal complexity and negligible overhead of the algorithm. An outline of this algorithm has already been presented in a short proceedings paper of the 18th International Conference on Domain Decomposition Methods [M. J. Gander and C. Japhet, Lect. Notes Comput. Sci. Eng. 70, 185–192 (2009; Zbl 1183.65161)].

This software is also peer reviewed by journal TOMS.