Use serde1 feature
This commit is contained in:
parent
bb1909c2a8
commit
2a1bb3f815
|
@ -2,7 +2,7 @@
|
||||||
name = "euler"
|
name = "euler"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# Internal feature flag to gate the expensive tests
|
# Internal feature flag to gate the expensive tests
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "gridgeneration"
|
name = "gridgeneration"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ndarray = { version = "0.15.0", default-features = false }
|
ndarray = { version = "0.15.0", default-features = false }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "heat-equation"
|
name = "heat-equation"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "maxwell"
|
name = "maxwell"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
sparse = ["sbp/sparse", "dep:sprs"]
|
sparse = ["sbp/sparse", "dep:sprs"]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "multigrid"
|
name = "multigrid"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -11,7 +11,7 @@ euler = { path = "../euler", features = ["serde1"] }
|
||||||
hdf5 = "0.8.1"
|
hdf5 = "0.8.1"
|
||||||
integrate = { path = "../utils/integrate" }
|
integrate = { path = "../utils/integrate" }
|
||||||
rayon = "1.3.0"
|
rayon = "1.3.0"
|
||||||
indicatif = "0.17.0-beta.1"
|
indicatif = "0.17.0-rc.11"
|
||||||
ndarray = { version = "0.15.0", features = ["serde"] }
|
ndarray = { version = "0.15.0", features = ["serde"] }
|
||||||
serde = { version = "1.0.115", features = ["derive"] }
|
serde = { version = "1.0.115", features = ["derive"] }
|
||||||
json5 = "0.3.0"
|
json5 = "0.3.0"
|
||||||
|
|
|
@ -166,6 +166,7 @@ fn progressbar(ntime: u64) -> indicatif::ProgressBar {
|
||||||
let progressbar = indicatif::ProgressBar::new(ntime);
|
let progressbar = indicatif::ProgressBar::new(ntime);
|
||||||
progressbar.with_style(
|
progressbar.with_style(
|
||||||
indicatif::ProgressStyle::default_bar()
|
indicatif::ProgressStyle::default_bar()
|
||||||
.template("{wide_bar:.cyan/blue} {pos}/{len} ({eta})"),
|
.template("{wide_bar:.cyan/blue} {pos}/{len} ({eta})")
|
||||||
|
.unwrap(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "sbp"
|
name = "sbp"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ndarray = { version = "0.15.0", features = ["approx"] }
|
ndarray = { version = "0.15.0", features = ["approx"] }
|
||||||
|
|
|
@ -4,12 +4,12 @@ use crate::Float;
|
||||||
mod jacobi;
|
mod jacobi;
|
||||||
#[cfg(feature = "sparse")]
|
#[cfg(feature = "sparse")]
|
||||||
pub use jacobi::*;
|
pub use jacobi::*;
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde1")]
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
#[cfg(feature = "sparse")]
|
#[cfg(feature = "sparse")]
|
||||||
pub use sprs::kronecker_product;
|
pub use sprs::kronecker_product;
|
||||||
|
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
/// struct to hold output for four directions
|
/// struct to hold output for four directions
|
||||||
pub struct Direction<T> {
|
pub struct Direction<T> {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "shallow-water"
|
name = "shallow-water"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ndarray = "0.15.0"
|
ndarray = "0.15.0"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "constmatrix"
|
name = "constmatrix"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
approx = { version = "0.4.0", optional = true }
|
approx = { version = "0.4.0", optional = true }
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
name = "fast-float"
|
name = "fast-float"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
float = { path = "../float" }
|
float = { path = "../float" }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "float"
|
name = "float"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
f32 = []
|
f32 = []
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "integrate"
|
name = "integrate"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
float = { path = "../float/" }
|
float = { path = "../float/" }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
name = "sbp-web"
|
name = "sbp-web"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
authors = ["Magnus Ulimoen <magnus@ulimoen.dev>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
Loading…
Reference in New Issue