# Surface integral and discontinious Jacobian

**URL:** <https://fenicsproject.discourse.group/t/surface-integral-and-discontinious-jacobian/11574>\
**Category:** Errors\
**Created:** [June 22, 2023, 12:05pm UTC](https://fenicsproject.discourse.group/t/surface-integral-and-discontinious-jacobian/11574 "2023-06-22T12:05:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hiiamfrompoland](https://avatars.discourse-cdn.com/v4/letter/h/ed655f/32.png) [@hiiamfrompoland](https://fenicsproject.discourse.group/u/hiiamfrompoland)\
**Post date:** [June 22, 2023, 1:22pm UTC](https://fenicsproject.discourse.group/t/surface-integral-and-discontinious-jacobian/11574/3 "2023-06-22T13:22:53Z")

</div>

Hey,  
thank you for the quick reply, it does solve the problem.

Later I run into one more problem with my code:

> TypeError: **init** (): incompatible constructor arguments.

I saw [here](https://fenicsproject.discourse.group/t/how-to-compute-flux-at-particular-boundary-facets/11386) that I should use meshtags:

```auto
pec_microstrip_facets_tags = meshtags(mesh, tdim-1, pec_microstrip_facets, np.full_like(pec_microstrip_facets, 1, dtype=np.int32))
ds = Measure('ds', domain=mesh, subdomain_data=pec_microstrip_facets_tags, subdomain_id=1)

```

So now it seems that the calculation works, thank you for the help 🙂

---

_[View the full topic](https://fenicsproject.discourse.group/t/surface-integral-and-discontinious-jacobian/11574)._
