# Julia integral calculation - community module or own module?

**URL:** <https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278>\
**Category:** General Usage\
**Tags:** gpu, packages\
**Created:** [May 16, 2019, 11:23am UTC](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278 "2019-05-16T11:23:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Pier](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pier/32/7335_2.png) [@Pier](https://discourse.julialang.org/u/Pier)\
**Post date:** [May 17, 2019, 2:21pm UTC](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278/6 "2019-05-17T14:21:45Z")

</div>

I see from the paper that you compute the fields from wire configurations which require 1-D integrations. In this case I suggest to use the QuadQK package ([https://github.com/JuliaMath/QuadGK.jl](https://github.com/JuliaMath/QuadGK.jl)) which impements state-of-the art adaptive integration routines, with the benefit that it is very well suited to integrands with singularities (which can be passed to the routine). To increase performance I would not resort to GPUs but rather parallelize the computation within standard Julia by either parallelizing on the conductor pieces (for all points) or on the evaluation points (for all conductors). Hope this helps.

---

_[View the full topic](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278)._
