Skip to main content

math_audio_bem/
lib.rs

1//! # BEM: Boundary Element Method Library
2//!
3//! High-performance, memory-efficient BEM solver for acoustic scattering problems.
4//!
5//! ## Features
6//!
7//! - Parallel execution with Rayon (memory-efficient, no async overhead)
8//! - Comprehensive analytical validation (1D, 2D, 3D)
9//! - JSON output for visualization
10//!
11
12#![warn(missing_docs)]
13#![warn(clippy::all)]
14#![allow(clippy::too_many_arguments)] // Scientific code often has many parameters
15
16// pub mod analytical; // Removed - use math_audio_wave::analytical instead
17pub mod core;
18pub mod room_acoustics;
19pub mod testing;
20
21// Re-exports
22pub use math_audio_wave::analytical;
23pub use testing::*;
24
25/// Library version
26pub const VERSION: &str = env!("CARGO_PKG_VERSION");
27
28/// Git commit hash (set during build)
29pub const GIT_HASH: &str = env!("GIT_HASH");
30
31#[cfg(test)]
32mod tests {
33    use super::*;
34
35    #[test]
36    fn test_version() {
37        assert!(!VERSION.is_empty());
38    }
39}