# Argument out of range

**URL:** <https://community.freefem.org/t/argument-out-of-range/1980>\
**Category:** General Discussion\
**Created:** [August 31, 2022, 1:34pm UTC](https://community.freefem.org/t/argument-out-of-range/1980 "2022-08-31T13:34:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SHENG](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@SHENG](https://community.freefem.org/u/SHENG)\
**Post date:** [August 31, 2022, 1:34pm UTC](https://community.freefem.org/t/argument-out-of-range/1980/1 "2022-08-31T13:34:34Z")

</div>

Dear all,

I performed the elastic simulation on a three-dimensional cube in FF++, using parallel computing mode (load “PETSc”). When I used two processors, the FF++ code is normal. However, as I used four or more processors, FF++ reported the error, i.e., Argument out of range. Was it because my computer configuration is too low?

Please give me some advice. I would appreciate it.

Best regards,  
Liu

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [August 31, 2022, 1:57pm UTC](https://community.freefem.org/t/argument-out-of-range/1980/2 "2022-08-31T13:57:42Z")

</div>

You need to share the code that is giving you the error, otherwise it’s difficult to help you.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [September 1, 2022, 11:44am UTC](https://community.freefem.org/t/argument-out-of-range/1980/4 "2022-09-01T11:44:13Z")

</div>

The following code should run to completion.  
[Parallel\_1.edp](https://community.freefem.org/uploads/short-url/qFWbOJVmAtQb7xxc0g5BWdygEcB.edp) (4.7 KB)

---

<div class="post-metadata">

**Author:** ![SHENG](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@SHENG](https://community.freefem.org/u/SHENG)\
**Post date:** [September 1, 2022, 11:48am UTC](https://community.freefem.org/t/argument-out-of-range/1980/5 "2022-09-01T11:48:54Z")

</div>

Dear Professor,

Thank you from the bottom of my heart.

Best wishes,  
Liu
