Skip to content

Instantly share code, notes, and snippets.

@johnrichardrinehart
Created July 2, 2017 00:00
Show Gist options
  • Save johnrichardrinehart/56adf20db7a66ada1ccd53d1ed3ab65a to your computer and use it in GitHub Desktop.
Save johnrichardrinehart/56adf20db7a66ada1ccd53d1ed3ab65a to your computer and use it in GitHub Desktop.
JuliaParallelWrite.jl
@sync @parallel for i = 1:length(x)
for j = 1:length(y)
grid[i,j] =
Cubature.hcubature(integrand(3,x[i],y[j]),[1e-2,0],[10,2*pi])[1]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment