| Line | Exclusive | Inclusive | Code |
|---|---|---|---|
| 1 | using KiteModels, Profile, StatProfilerHTML | ||
| 2 | |||
| 3 | kps4::KPS4 = KPS4(KCU(se())) | ||
| 4 | |||
| 5 | integrator = KiteModels.init_sim!(kps4; stiffness_factor=0.035, prn=false) | ||
| 6 | @timev next_step!(kps4, integrator, v_ro = 0, dt=0.05) | ||
| 7 | function nsteps(kps4, integrator) | ||
| 8 | for i=1:10 | ||
| 9 | 58 (100 %) |
58 (100 %)
samples spent calling
next_step!
next_step!(kps4, integrator, v_ro = 0, dt=0.05)
|
|
| 10 | end | ||
| 11 | end | ||
| 12 | nsteps(kps4, integrator) | ||
| 13 | Profile.clear() | ||
| 14 | @profilehtml nsteps(kps4, integrator) | ||
| 15 | nothing |