You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2023. It is now read-only.
1537: Use static range in Grad setproperty! r=mwarusz a=mwarusz
# Description
After #1458 I noticed a slowdown. This PR proposes a fix.
Running ```julia --project=. experiments/AtmosLES/bomex_les.jl --monitor-timestep-duration 100steps``` I get
Before:
```
┌ Info: Wall-clock time per time-step (statistics across MPI ranks)
│ maximum (s) = 1.5273617989999998e-02
│ minimum (s) = 1.5273617989999998e-02
│ median (s) = 1.5273617989999998e-02
└ std (s) = NaN
```
After:
```
Info: Wall-clock time per time-step (statistics across MPI ranks)
│ maximum (s) = 1.1554147779999999e-02
│ minimum (s) = 1.1554147779999999e-02
│ median (s) = 1.1554147779999999e-02
└ std (s) = NaN
```
The fix relies on unexported `StaticArrays` API but JuliaArrays/StaticArrays.jl#474 makes me think that this is ok.
Co-authored-by: Maciej Waruszewski <[email protected]>
0 commit comments