# EQ\_IPDG\_Linear\_Elliptic' object has no attribute 'CellSize

**URL:** <https://fenicsproject.discourse.group/t/eq-ipdg-linear-elliptic-object-has-no-attribute-cellsize/10831>\
**Category:** General\
**Created:** [March 31, 2023, 11:04pm UTC](https://fenicsproject.discourse.group/t/eq-ipdg-linear-elliptic-object-has-no-attribute-cellsize/10831 "2023-03-31T23:04:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 1, 2023, 5:54am UTC](https://fenicsproject.discourse.group/t/eq-ipdg-linear-elliptic-object-has-no-attribute-cellsize/10831/2 "2023-04-01T05:54:10Z")

</div>

> [@Augustine\_Twumasi](#):
>
> self.h\_T = self.CellSize(self.mesh)

Again, as in

> [@I have imported all packages from dolfin using " from dolfin import \*"](https://fenicsproject.discourse.group/t/i-have-imported-all-packages-from-dolfin-using-from-dolfin-import/10830):
>
> But this code snippet gives the error below. please can you help me Update Other Spaces self.ScalarErrorSpace = FunctionSpace(self.mesh, "DG", int(self.k + 2)) self.VectorErrorSpace = VectorFunctionSpace(self.mesh, "DG", int(self.k + 1)) self.ScalarRHSSpace = FunctionSpace(self.mesh, "DG", int(self.k + 1)) self.VectorRHSSpace = VectorFunctionSpace(self.mesh, "DG", int(self.k + 1)) self.LocalSpace = FunctionSpace(self.mesh, "DG", 0) # Update Mesh …

You are mixing class attributes with imported functions.

This means that it should be

```python
self.h_T = CellSize(self.mesh)

```

---

_[View the full topic](https://fenicsproject.discourse.group/t/eq-ipdg-linear-elliptic-object-has-no-attribute-cellsize/10831)._
