# DG method and PETSc

**URL:** <https://community.freefem.org/t/dg-method-and-petsc/3077>\
**Category:** General Discussion\
**Created:** [March 31, 2024, 12:21pm UTC](https://community.freefem.org/t/dg-method-and-petsc/3077 "2024-03-31T12:21:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![111-1111](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/111-1111/32/2175_2.png) [@111-1111](https://community.freefem.org/u/111-1111)\
**Post date:** [March 31, 2024, 12:21pm UTC](https://community.freefem.org/t/dg-method-and-petsc/3077/1 "2024-03-31T12:21:48Z")

</div>

Dear PETSc developer,  
the problem I am solving may involve the DG finite element method to handle complex fluid problems in porous media. May I ask if PETSc supports the parallelism of the DG finite element method.

---

<div class="post-metadata">

**Author:** ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)\
**Post date:** [March 31, 2024, 1:18pm UTC](https://community.freefem.org/t/dg-method-and-petsc/3077/2 "2024-03-31T13:18:29Z")

</div>

ask the internet… [DG freefem](https://doc.freefem.org/tutorials/rotatingHill.html#solution-by-discontinuous-galerkin-fem)

---

<div class="post-metadata">

**Author:** ![111-1111](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/111-1111/32/2175_2.png) [@111-1111](https://community.freefem.org/u/111-1111)\
**Post date:** [March 31, 2024, 1:47pm UTC](https://community.freefem.org/t/dg-method-and-petsc/3077/3 "2024-03-31T13:47:53Z")

</div>

Thank you for your reply.  
[Pure Convection : The Rotating Hill (freefem.org)](https://doc.freefem.org/tutorials/rotatingHill.html#solution-by-discontinuous-galerkin-fem)  
Can you change the link you provided to an example of DG finite element serial code improvement to a PETSc parallel version？

---

<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:** [March 31, 2024, 2:37pm UTC](https://community.freefem.org/t/dg-method-and-petsc/3077/4 "2024-03-31T14:37:13Z")

</div>

It doesn’t make any difference whether you do CG or DG when it comes to PETSc.

---

<div class="post-metadata">

**Author:** ![111-1111](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/111-1111/32/2175_2.png) [@111-1111](https://community.freefem.org/u/111-1111)\
**Post date:** [March 31, 2024, 2:51pm UTC](https://community.freefem.org/t/dg-method-and-petsc/3077/5 "2024-03-31T14:51:05Z")

</div>

Thank you very much.
