SummationByParts/sbp/src/lib.rs

27 lines
669 B
Rust
Raw Normal View History

2020-08-24 16:08:58 +00:00
#![feature(min_specialization)]
2020-05-14 17:39:19 +00:00
#![feature(core_intrinsics)]
2020-04-12 17:27:18 +00:00
2020-09-19 13:46:02 +00:00
/// Type used for floats, configure with the `f32` feature
#[cfg(feature = "f32")]
pub type Float = f32;
#[cfg(not(feature = "f32"))]
2020-09-19 13:46:02 +00:00
/// Type used for floats, configure with the `f32` feature
pub type Float = f64;
2020-09-19 13:46:02 +00:00
/// Associated constants for [`Float`]
pub mod consts {
2020-02-27 21:27:11 +00:00
#[cfg(feature = "f32")]
pub use std::f32::consts::*;
2020-02-27 21:27:11 +00:00
#[cfg(not(feature = "f32"))]
pub use std::f64::consts::*;
2020-02-27 21:27:11 +00:00
}
2020-09-19 13:46:02 +00:00
/// Grid and grid metrics
2020-01-30 17:28:22 +00:00
pub mod grid;
2020-09-19 13:46:02 +00:00
/// RK operators and methods for implicit integration
2020-01-30 17:28:22 +00:00
pub mod integrate;
2020-09-19 13:46:02 +00:00
/// SBP and interpolation operators
2020-01-30 17:28:22 +00:00
pub mod operators;
2020-09-19 13:46:02 +00:00
/// General utilities
2020-02-22 16:45:28 +00:00
pub mod utils;