Upgrade arrayvec to use const-generics

This commit is contained in:
Magnus Ulimoen 2021-03-27 11:46:02 +01:00
parent 22a3464326
commit 57c897ec94
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ serde1 = ["serde", "arrayvec/serde"]
[dependencies]
ndarray = "0.14.0"
sbp = { path = "../sbp" }
arrayvec = "0.5.1"
arrayvec = "0.6.0"
serde = { version = "1.0.115", default-features = false, optional = true, features = ["derive"] }
integrate = { path = "../utils/integrate" }

View File

@ -460,7 +460,8 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct VortexParameters {
pub vortices: ArrayVec<[Vortice; 5]>,
// The limit of 5 vortices can be bumped if needed...
pub vortices: ArrayVec<Vortice, 5>,
pub mach: Float,
}