1function checkMatchingGrids(t_cell,x_cell,numResolutions)
3tGridErr = 0; xGridErr = 0;
4for m = 2:numResolutions
5 tGridErr = max(tGridErr,maxNorm(t_cell{m} - t_cell{1}));
6 xGridErr = max(xGridErr,maxNorm(x_cell{m} - x_cell{1}));
7end
9tol = 1e-12;
10if(tGridErr>tol || xGridErr>tol)
11 warning('Time or space grids do not match to report self-convergence');
12end
14end