<p>#include <math.h></p><p>#include <stdio.h></p><p>#include <assert.h></p><p>#include <stdlib.h></p><p>#include <string.h></p><p>int OMP_xMax;</p><p>#define xMax OMP_xMax</p><p>int OMP_yMax;</p><p>#define yMax OMP_yMax</p><p>int OMP_zMax;</p><p>#define zMax OMP_zMax</p><p>int OMP_Index(int x, int y, int z)</p><p>{</p><p>return ((z * yMax + y) * xMax + x);</p><p>}</p><p>#define