# Is it possible to parallelize Garfield?

**URL:** <https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641>\
**Category:** Garfield++\
**Created:** [September 29, 2020, 5:45am UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641 "2020-09-29T05:45:29Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 12, 2020, 1:11pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641/22 "2020-10-12T13:11:35Z")

</div>

You data contain NaN and/or Inf

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [October 12, 2020, 1:22pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641/23 "2020-10-12T13:22:35Z")

</div>

I’ll take a look…

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [October 14, 2020, 9:25pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641/24 "2020-10-14T21:25:04Z")

</div>

Sorry again for the delay… I’ve added a few more guard locks. Can you `git pull` and give it another try?

---

<div class="post-metadata">

**Author:** ![Pete](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@Pete](https://root-forum.cern.ch/u/Pete)\
**Post date:** [October 14, 2020, 10:33pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641/25 "2020-10-14T22:33:28Z")

</div>

Hi,

No need to be sorry about the delay. Thank you for helping me with this!

I did a git pull, then cmake garfield again. So far (I have only run the code once), sensor does not output nan results anymore, and I am actually getting signals now. I will run the code multiple times and make sure, but I think you fixed it!

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [October 15, 2020, 8:20am UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641/26 "2020-10-15T08:20:43Z")

</div>

Great! I’m sure there are still many places in the code that are not thread safe, so if you encounter any issues, please shout…

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 29, 2020, 8:20am UTC](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641/27 "2020-10-29T08:20:56Z")

</div>

Closed on October 29, 2020, 8:20am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://root-forum.cern.ch/t/is-it-possible-to-parallelize-garfield/41641.md?page=1)
