tvb-root icon indicating copy to clipboard operation
tvb-root copied to clipboard

Heun 2nd order coupling

Open maedoc opened this issue 3 years ago • 0 comments

Describe the bug

In the current integrators, the coupling has been evaluated only once per step, while the Heun method should evaluate it twice. For many models, this isn't an issue, but some models have highly nonlinear coupling functions (e.g. Kuramoto) and convergence suffers significantly compared to custom code (10x smaller time step required).

Steps to reproduce

Any model even with linear coupling, e.g. Kuramoto or MPR.

Expected results

Faster convergence.

Actual results

Slow convergence.

Additional information

This will require a change to data flow as the integrator does not currently receive the coupling function instance as an argument.

maedoc avatar Apr 01 '22 15:04 maedoc