Upgrade arrayvec to use const-generics
This commit is contained in:
parent
22a3464326
commit
57c897ec94
|
@ -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" }
|
||||
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue