# PETSc example (heat-TS-2d-PETSc.edp) incorrectly imlpemented?

**URL:** <https://community.freefem.org/t/petsc-example-heat-ts-2d-petsc-edp-incorrectly-imlpemented/3704>\
**Category:** General Discussion\
**Created:** [January 23, 2025, 7:32am UTC](https://community.freefem.org/t/petsc-example-heat-ts-2d-petsc-edp-incorrectly-imlpemented/3704 "2025-01-23T07:32:51Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)\
**Post date:** [January 29, 2025, 1:33pm UTC](https://community.freefem.org/t/petsc-example-heat-ts-2d-petsc-edp-incorrectly-imlpemented/3704/11 "2025-01-29T13:33:03Z")

</div>

You may prefer a handmade time loop like this  
[heat-PETSc.edp](https://community.freefem.org/uploads/short-url/iu2ckdcRubpMCMb8MeHqnXEsPgr.edp) (1.7 KB)  
Then you have to do second-order, Newton, timestep adaptation by hand. But it is much more understandable than with TSSolve.

---

_[View the full topic](https://community.freefem.org/t/petsc-example-heat-ts-2d-petsc-edp-incorrectly-imlpemented/3704)._
