# PETSc error code is: 76 while computing Gradient

**URL:** <https://fenicsproject.discourse.group/t/petsc-error-code-is-76-while-computing-gradient/14106>\
**Category:** General\
**Tags:** mesh, dolfinx\
**Created:** [April 3, 2024, 7:29am UTC](https://fenicsproject.discourse.group/t/petsc-error-code-is-76-while-computing-gradient/14106 "2024-04-03T07:29:56Z")\
**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 3, 2024, 8:21am UTC](https://fenicsproject.discourse.group/t/petsc-error-code-is-76-while-computing-gradient/14106/2 "2024-04-03T08:21:46Z")

</div>

You would have to provide a minimal running example, as also stated in

> [@danny](#):
>
> \*\*\* -------------------------------------------------------------------------  
> \*\*\* DOLFIN encountered an error. If you are not able to resolve this issue  
> \*\*\* using the information listed below, you can ask for help at
> 
> * * *
> 
> \*\*\* [fenics-support@googlegroups.com](mailto:fenics-support@googlegroups.com)
> 
> * * *
> 
> \*\*\* Remember to include the error message listed below and, if possible,  
> \*\*\* include a _minimal_ running example to reproduce the error.

> [@Read before posting: How do I get my question answered?](https://fenicsproject.discourse.group/t/read-before-posting-how-do-i-get-my-question-answered/21):
>
> Here are a few tips to help get your question answered: Write your message in English. Phrase the title of your post as a question and make it meaningful. Check that your question hasn’t been asked before using the search functionality. Post a “minimum working code example” (MWE) to illustrate the problem: A MWE is the simplest piece of code that reproduces or explains the problem you have. It must be possible to take the MWE, paste it into a file and run it, without any extra modifications.…

Please note that several others have also asked similar questions: [Search results for '\*\*\* Reason: PETSc error code is: 76 (Error in external library)' - FEniCS Project](https://fenicsproject.discourse.group/search?q=***%20Reason%3A%20PETSc%20error%20code%20is%3A%2076%20(Error%20in%20external%20library)).

---

_[View the full topic](https://fenicsproject.discourse.group/t/petsc-error-code-is-76-while-computing-gradient/14106)._
