Use the function of check_array_region by math_interface in grid_manager_init.