Make the loop on func parallel using OpenMP
