# Integrator issues

**URL:** <https://quantics.discourse.group/t/integrator-issues/96>\
**Category:** General\
**Created:** [March 26, 2026, 3:13pm UTC](https://quantics.discourse.group/t/integrator-issues/96 "2026-03-26T15:13:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamOHare](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@AdamOHare](https://quantics.discourse.group/u/AdamOHare)\
**Post date:** [March 26, 2026, 3:13pm UTC](https://quantics.discourse.group/t/integrator-issues/96/1 "2026-03-26T15:13:59Z")

</div>

Hello there,

@Lidice and I have been coming across an error associated with the Integrator step size. Originally we believed it to be a problem with macOS, since Lidice can only get it to run on her linux machine. But I have had the same error appear on Linux, so it may be that Lidice has an older version of Quantics on Linux. Below is the error:

```auto

ERROR in subroutine Writestep (wrintegrat.f90):
Integration terminated. Integrator step too small : 0.00000001
------------------------------------

```

We’ve tried different integrators, different accuracies and changing the minstep tolerance in wrintegrat.f90. Has anyone come across this error before? or know of any fixes?

---

<div class="post-metadata">

**Author:** ![julien.eng](https://yyz1.discourse-cdn.com/flex007/user_avatar/quantics.discourse.group/julien.eng/32/15_2.png) [@julien.eng](https://quantics.discourse.group/u/julien.eng)\
**Post date:** [March 27, 2026, 12:13pm UTC](https://quantics.discourse.group/t/integrator-issues/96/2 "2026-03-27T12:13:10Z")

</div>

Looking at wrintegrat.f90, it seems your integration step is equal to the minimum step (minstep=1d-8).  
I imagine it might come from the accuracy of the computer .

in wrintegrat.f90 try modifying that part:

`! stepsize is exactly 0.0 in SIL diagonalisation`  
`if ((abs(stepsize)<minstep).and.(abs(stepsize)>0).and.ll) then`  
`routine = ‘Writestep (wrintegrat.f90)’`  
`write(message,‘(a,f12.8)’) &`  
`‘Integration terminated. Integrator step too small :’,stepsize`  
`call errormsg`  
`endif`

by changing the format of the print command to ‘(a,f12.9)’ for example. Is the error message exactly?:  
`ERROR in subroutine Writestep (wrintegrat.f90):`  
`Integration terminated. Integrator step too small : 0.000000010`

or is it something lower ?

---

<div class="post-metadata">

**Author:** ![AdamOHare](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@AdamOHare](https://quantics.discourse.group/u/AdamOHare)\
**Post date:** [March 27, 2026, 2:07pm UTC](https://quantics.discourse.group/t/integrator-issues/96/3 "2026-03-27T14:07:47Z")

</div>

Hi Julien,

Yes, once making the change the exact error outputted is

```auto
ERROR in subroutine Writestep (wrintegrat.f90):
Integration terminated. Integrator step too small : 0.000000010
----------------------------------------

```

---

<div class="post-metadata">

**Author:** ![AdamOHare](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@AdamOHare](https://quantics.discourse.group/u/AdamOHare)\
**Post date:** [March 27, 2026, 2:28pm UTC](https://quantics.discourse.group/t/integrator-issues/96/4 "2026-03-27T14:28:17Z")

</div>

Hi Julien,

Yes, once making the change the exact error outputted is

```auto
ERROR in subroutine Writestep (wrintegrat.f90):
Integration terminated. Integrator step too small : 0.000000010
----------------------------------------

```

Actually I have also gotten smaller, 0.000000009 and 0.000000008 aswell
