StaticArrays are immutable, so you have to build a new one:
function big_volume_jump!(integrator)
integrator.u = vcat(SA[integrator.u[1] + 250.0],integrator.u[2:end])
end
or using StaticArrays.setindex can be helpful.
StaticArrays are immutable, so you have to build a new one:
function big_volume_jump!(integrator)
integrator.u = vcat(SA[integrator.u[1] + 250.0],integrator.u[2:end])
end
or using StaticArrays.setindex can be helpful.