Your struct isn’t type stable. Specifically, the compiler can’t figure out what the type of a.integrator is.
a.integrator