# Stability issue with MethodOfLines

**URL:** <https://discourse.julialang.org/t/stability-issue-with-methodoflines/84133>\
**Category:** Modelling & Simulations\
**Created:** [July 12, 2022, 11:07pm UTC](https://discourse.julialang.org/t/stability-issue-with-methodoflines/84133 "2022-07-12T23:07:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![marcofrancis](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@marcofrancis](https://discourse.julialang.org/u/marcofrancis)\
**Post date:** [July 13, 2022, 10:14am UTC](https://discourse.julialang.org/t/stability-issue-with-methodoflines/84133/6 "2022-07-13T10:14:38Z")

</div>

OMG! You made my day 😃 Yeah I can confirm that even starting from a kosher initial condition (e.g. very peaked Gaussian far from the boundaries) will result in instability UNLESS the magic sign turning is performed.

I thought it could be related to [Dirac delta in boundary conditions for MethodOfLines.jl - #5 by xtalax](https://discourse.julialang.org/t/dirac-delta-in-boundary-conditions-for-methodoflines-jl/80567/5) but somehow even putting the time derivative on the other side does not help

---

_[View the full topic](https://discourse.julialang.org/t/stability-issue-with-methodoflines/84133)._
