if(length(param$flare.inf.point)!=length(param$flare.inf.num))stop("flare.inf.point and flare.inf.num must have the same length!")
if(max(param$flare.inf.point)>control$nsteps)stop("flare.inf.point can not exceed the total time points: nsteps!")
if(min(param$flare.inf.point)<=2)stop("flare.inf.point should all be larger than 2, please change the initial i.num if flare time point needs to be smaller than 2")
## In-place assignment to update param and control