# Error using Real element

**URL:** <https://fenicsproject.discourse.group/t/error-using-real-element/7735>\
**Category:** Uncategorized\
**Created:** [February 24, 2022, 6:38am UTC](https://fenicsproject.discourse.group/t/error-using-real-element/7735 "2022-02-24T06:38:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham\_Saurabh](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/shubham_saurabh/32/3460_2.png) [@Shubham\_Saurabh](https://fenicsproject.discourse.group/u/Shubham_Saurabh)\
**Post date:** [February 24, 2022, 6:38am UTC](https://fenicsproject.discourse.group/t/error-using-real-element/7735/1 "2022-02-24T06:38:03Z")

</div>

Hi all,  
I am unable to **parallelize** a code with a `Real element`. The code is running well for` n=20`. But with increasing `n` value, I am getting an error of `Segmentation fault.`

```auto
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 702 RUNNING AT ab759c7bf63f
= EXIT CODE: 11
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions

```

The MWE is-

```auto
from fenics import *

n=50
mesh = UnitCubeMesh(n, n, n)
R = FunctionSpace(mesh, "R", 0)
assemble(TestFunction(R)*dx)
print("done")

```

This query has reference to my two posts-

> [@Consideration of point mass in modal analysis code](https://fenicsproject.discourse.group/t/consideration-of-point-mass-in-modal-analysis-code/7309/8):
>
> Hi @Shubham_Saurabh, You should look at the Ansys manual to see how point masses are implemented and how the equations are modified. I’m not familiar with modal analysis in Ansys so I don’t know how the frequencies are obtained. With that being said, in the results you present from Ansys, it looks like the addition of a point mass has a much stronger effect on the frequency of the lowest-frequency mode than any of the other modes. To me, this suggests that the point mass is implemented via an …

> [@Error while doing modal analysis through parallelization](https://fenicsproject.discourse.group/t/error-while-doing-modal-analysis-through-parallelization/7700):
>
> Hi all, I am performing modal analysis of a 3D box with a distributed mass on its interior faces of cylindrical holes. The geometry and mesh files are here- [geometry and mesh](https://drive.google.com/drive/folders/1SLXbInv-xVl8VYADQbNLz5CBskD5rVmy?usp=sharing). It has DoF of 1.1 million. When I am running it through parallelization , it is giving an error- =================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = PID 456 RUNNING AT ec89dea7792c = EXIT CODE: 11 = CLEANING UP REMAINING PR…

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [February 24, 2022, 9:34am UTC](https://fenicsproject.discourse.group/t/error-using-real-element/7735/2 "2022-02-24T09:34:43Z")

</div>

I cannot reproduce this issue using:

```auto
docker run -ti -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd):/root/shared -w /root/shared --rm quay.io/fenicsproject/dev:latest

```

MWE

```python
from fenics import *

n = 50
mesh = UnitCubeMesh(n, n, n)
R = FunctionSpace(mesh, "R", 0)
assemble(TestFunction(R)*dx)
print("done")

```

returning

```auto
 sudo mpirun -n 5 python3 test.py 
done
done
done
done
done

```
