Skip to content

Commit

Permalink
Rename solvers to bempp (#82)
Browse files Browse the repository at this point in the history
* Change license name to Bempp-rs developers

* rename solvers -> bempp

* rename solvers -> bempp

* cargo fmt
  • Loading branch information
mscroggs authored Mar 16, 2023
1 parent e9617c3 commit b0ed0ef
Show file tree
Hide file tree
Showing 43 changed files with 129 additions and 129 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bem.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: solvers-bem
about: Create a issue relates to the solvers-bem crate
name: bempp-bem
about: Create a issue relates to the bempp-bem crate
title: ''
labels: solvers-bem
labels: bempp-bem
assignees: ''

---
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/element.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: solvers-element
about: Create a issue relates to the solvers-element crate
name: bempp-element
about: Create a issue relates to the bempp-element crate
title: ''
labels: solvers-element
labels: bempp-element
assignees: ''

---
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/fmm.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: solvers-fmm
about: Create a issue relates to the solvers-fmm crate
name: bempp-fmm
about: Create a issue relates to the bempp-fmm crate
title: ''
labels: solvers-fmm
labels: bempp-fmm
assignees: ''

---
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/grid.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: solvers-grid
about: Create a issue relates to the solvers-grid crate
name: bempp-grid
about: Create a issue relates to the bempp-grid crate
title: ''
labels: solvers-grid
labels: bempp-grid
assignees: ''

---
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/quadrature.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: solvers-quadrature
about: Create a issue relates to the solvers-quadrature crate
t---
name: bempp-quadrature
about: Create a issue relates to the bempp-quadrature crate
title: ''
labels: solvers-quadrature
labels: bempp-quadrature
assignees: ''

---
---
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/traits.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: solvers-traits
about: Create a issue relates to the solvers-traits crate
name: bempp-traits
about: Create a issue relates to the bempp-traits crate
title: ''
labels: solvers-traits
labels: bempp-traits
assignees: ''

---
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/tree.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: solvers-tree
about: Create a issue relates to the solvers-tree crate
name: bempp-tree
about: Create a issue relates to the bempp-tree crate
title: ''
labels: solvers-tree
labels: bempp-tree
assignees: ''

---
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2022, Rusty Solvers Developers
Copyright (c) 2022, Bempp-rs Developers
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
12 changes: 6 additions & 6 deletions element/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
strict = []

[package]
name = "solvers-element"
name = "bempp-element"
version = "0.1.0"
edition = "2021"
authors = ["Matthew Scroggs <[email protected]>"]
description = "A library for the evaluation of finite element basis functions."
license = "BSD-3-Clause"
homepage = "https://github.com/rusty-solvers/solvers-element"
repository = "https://github.com/rusty-solvers/solvers-element"
homepage = "https://github.com/bempp/bempp-rs"
repository = "https://github.com/bempp/bempp-rs"
readme = "README.md"
keywords = ["numerics"]
categories = ["mathematics", "science"]

[lib]
name = "solvers_element"
name = "bempp_element"
crate-type = ["lib", "cdylib"]

[dependencies]
solvers-tools = { path = "../tools"}
solvers-traits = { path = "../traits" }
bempp-tools = { path = "../tools"}
bempp-traits = { path = "../traits" }
paste = "1.*"
libc = "0.2"
approx = "0.5"
2 changes: 1 addition & 1 deletion element/src/c_api.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! C Interface
use crate::cell::*;
pub use bempp_tools::RustyDataContainer;
use libc::size_t;
pub use solvers_tools::RustyDataContainer;

pub struct ReferenceCellContainer(Box<dyn ReferenceCell>);

Expand Down
6 changes: 3 additions & 3 deletions element/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ pub use cells_1d::*;
pub mod cells_2d;
pub use cells_2d::*;
pub mod cells_3d;
pub use bempp_traits::cell::PhysicalCell;
pub use bempp_traits::cell::ReferenceCell;
pub use bempp_traits::cell::ReferenceCellType;
pub use cells_3d::*;
pub use solvers_traits::cell::PhysicalCell;
pub use solvers_traits::cell::ReferenceCell;
pub use solvers_traits::cell::ReferenceCellType;

#[cfg(test)]
mod test {
Expand Down
8 changes: 4 additions & 4 deletions element/src/element.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Finite Element definitions
pub use solvers_traits::element::ElementFamily;
pub use solvers_traits::element::FiniteElement;
pub use solvers_traits::element::TabulatedData;
pub use bempp_traits::element::ElementFamily;
pub use bempp_traits::element::FiniteElement;
pub use bempp_traits::element::TabulatedData;
pub mod lagrange;
pub use lagrange::*;
pub mod raviart_thomas;
Expand All @@ -11,7 +11,7 @@ pub use raviart_thomas::*;
#[cfg(test)]
mod test {
use crate::element::*;
use solvers_traits::cell::ReferenceCellType;
use bempp_traits::cell::ReferenceCellType;

#[test]
fn test_lagrange_1() {
Expand Down
2 changes: 1 addition & 1 deletion element/src/element/raviart_thomas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use crate::cell::*;
use crate::element::*;
use crate::map::*;
use solvers_traits::element::ElementFamily;
use bempp_traits::element::ElementFamily;

/// Degree 1 Raviart-Thomas element on a triangle
pub struct RaviartThomasElementTriangleDegree1 {}
Expand Down
2 changes: 1 addition & 1 deletion element/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use crate::cell::PhysicalCell;
use crate::element::{FiniteElement, TabulatedData};
pub use solvers_traits::element::MapType;
pub use bempp_traits::element::MapType;

pub fn identity_push_forward<'a, F: FiniteElement + 'a>(
data: &mut TabulatedData,
Expand Down
16 changes: 8 additions & 8 deletions fmm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
strict = []

[package]
name = "solvers-fmm"
name = "bempp-fmm"
version = "0.1.0"
edition = "2021"
authors = ["Srinath Kailasa <[email protected]>"]
description = "FMM in Rust"
license = "BSD-3-Clause"
homepage = "https://github.com/rusty-solvers/solvers"
repository = "https://github.com/rusty-solvers/solvers"
homepage = "https://github.com/bempp/bempp-rs"
repository = "https://github.com/bempp/bempp-rs"
readme = "README.md"
keywords = ["numerics"]
categories = ["mathematics", "science"]

[lib]
name = "solvers_fmm"
name = "bempp_fmm"
crate-type = ["lib", "cdylib"]

[dependencies]
solvers-tools = { path = "../tools" }
solvers-tree = { path = "../tree" }
solvers-traits = { path = "../traits" }
bempp-tools = { path = "../tools" }
bempp-tree = { path = "../tree" }
bempp-traits = { path = "../traits" }
approx = "0.5"
cauchy = "0.4.*"
itertools = "0.10"
Expand All @@ -32,4 +32,4 @@ ndarray = { version = "*", features = ["rayon", "blas"]}
blas-src = { version = "*", features = ["openblas"] }
openblas-src = { version = "*", features = ["cblas", "system"] }
ndarray-linalg = { version = "*", features = ["openblas-system"] }
float-cmp = "0.9.0"
float-cmp = "0.9.0"
16 changes: 8 additions & 8 deletions fmm/src/fmm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ use itertools::Itertools;
use ndarray::*;
use ndarray_linalg::SVDDC;

use solvers_traits::fmm::{FmmLeafNodeData, FmmNodeData, KiFmmNode};
use solvers_traits::{
use bempp_traits::fmm::{FmmLeafNodeData, FmmNodeData, KiFmmNode};
use bempp_traits::{
fmm::{Fmm, FmmTree, Translation},
kernel::Kernel,
};
use solvers_tree::constants::ROOT;
use solvers_tree::types::node::{LeafNode, LeafNodes, Node, Nodes};
use bempp_tree::constants::ROOT;
use bempp_tree::types::node::{LeafNode, LeafNodes, Node, Nodes};

use solvers_tree::types::{
use bempp_tree::types::{
domain::Domain,
morton::{MortonKey, MortonKeys},
point::{Point, Points},
Expand Down Expand Up @@ -667,14 +667,14 @@ impl<'a> Fmm<'a> for KiFmm<'a> {

#[allow(unused_imports)]
mod test {
use solvers_tree::types::point::PointType;
use bempp_tree::types::point::PointType;

use float_cmp::assert_approx_eq;
use rand::prelude::*;
use rand::SeedableRng;

use solvers_traits::fmm::{Fmm, FmmLeafNodeData, FmmNodeData, FmmTree, KiFmmNode};
use solvers_tree::types::single_node::SingleNodeTree;
use bempp_traits::fmm::{Fmm, FmmLeafNodeData, FmmNodeData, FmmTree, KiFmmNode};
use bempp_tree::types::single_node::SingleNodeTree;

use super::KiFmm;
use crate::laplace::LaplaceKernel;
Expand Down
4 changes: 2 additions & 2 deletions fmm/src/laplace.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Laplace kernel implementation.
use solvers_traits::{kernel::Kernel, types::Result};
use bempp_traits::{kernel::Kernel, types::Result};

pub struct LaplaceKernel {
pub dim: usize,
Expand Down Expand Up @@ -106,7 +106,7 @@ impl Kernel for LaplaceKernel {
&self,
sources: &[[f64; 3]],
targets: &[[f64; 3]],
) -> solvers_traits::types::Result<Self::PotentialData> {
) -> bempp_traits::types::Result<Self::PotentialData> {
let mut result: Vec<f64> = Vec::new();

for target in targets.iter() {
Expand Down
14 changes: 7 additions & 7 deletions grid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
strict = []

[package]
name = "solvers-grid"
name = "bempp-grid"
version = "0.1.0"
edition = "2021"
authors = ["Matthew Scroggs <[email protected]>"]
description = "A library for the evaluation of finite element basis functions."
license = "BSD-3-Clause"
homepage = "https://github.com/rusty-solvers/solvers"
repository = "https://github.com/rusty-solvers/solvers"
homepage = "https://github.com/bempp/bempp-rs"
repository = "https://github.com/bempp/bempp-rs"
readme = "README.md"
keywords = ["numerics"]
categories = ["mathematics", "science"]

[lib]
name = "solvers_grid"
name = "bempp_grid"
crate-type = ["lib", "cdylib"]

[dependencies]
solvers-tools = { path = "../tools"}
solvers-traits = { path = "../traits"}
solvers-element = { path = "../element"}
bempp-tools = { path = "../tools"}
bempp-traits = { path = "../traits"}
bempp-element = { path = "../element"}
approx = "0.5"
itertools = "0.10"
10 changes: 5 additions & 5 deletions grid/examples/curved_cells.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use solvers_grid::grid::SerialGrid;
use solvers_grid::io::export_as_gmsh;
use solvers_tools::arrays::{AdjacencyList, Array2D};
use solvers_traits::cell::ReferenceCellType;
use solvers_traits::grid::{Geometry, Grid, Topology};
use bempp_grid::grid::SerialGrid;
use bempp_grid::io::export_as_gmsh;
use bempp_tools::arrays::{AdjacencyList, Array2D};
use bempp_traits::cell::ReferenceCellType;
use bempp_traits::grid::{Geometry, Grid, Topology};

fn main() {
// Create a grid of three cells. One cell is a curved triangle, one cell is a flat triangle, the other is a curved quadrilateral
Expand Down
6 changes: 3 additions & 3 deletions grid/examples/grid.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use solvers_grid::io::export_as_gmsh;
use solvers_grid::shapes::regular_sphere;
use solvers_traits::grid::{Geometry, Grid, Topology};
use bempp_grid::io::export_as_gmsh;
use bempp_grid::shapes::regular_sphere;
use bempp_traits::grid::{Geometry, Grid, Topology};

fn main() {
// Create a regular sphere
Expand Down
12 changes: 6 additions & 6 deletions grid/src/grid.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! A serial implementation of a grid
use bempp_element::cell;
use bempp_element::element;
use bempp_tools::arrays::{AdjacencyList, Array2D};
use bempp_traits::cell::{ReferenceCell, ReferenceCellType};
use bempp_traits::element::FiniteElement;
use bempp_traits::grid::{Geometry, Grid, Topology};
use itertools::izip;
use solvers_element::cell;
use solvers_element::element;
use solvers_tools::arrays::{AdjacencyList, Array2D};
use solvers_traits::cell::{ReferenceCell, ReferenceCellType};
use solvers_traits::element::FiniteElement;
use solvers_traits::grid::{Geometry, Grid, Topology};
use std::cell::{Ref, RefCell};

/// Geometry of a serial grid
Expand Down
10 changes: 5 additions & 5 deletions grid/src/io.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Functions for inputting and outputting grids to/from file
use crate::grid::SerialGrid;
use solvers_traits::cell::ReferenceCellType;
use solvers_traits::grid::{Geometry, Grid, Topology};
use bempp_traits::cell::ReferenceCellType;
use bempp_traits::grid::{Geometry, Grid, Topology};
use std::fs;

fn get_permutation_to_gmsh(cell_type: ReferenceCellType, degree: usize) -> Vec<usize> {
Expand Down Expand Up @@ -122,9 +122,9 @@ mod test {
use crate::grid::SerialGrid;
use crate::io::*;
use crate::shapes::regular_sphere;
use solvers_tools::arrays::AdjacencyList;
use solvers_tools::arrays::Array2D;
use solvers_traits::cell::ReferenceCellType;
use bempp_tools::arrays::AdjacencyList;
use bempp_tools::arrays::Array2D;
use bempp_traits::cell::ReferenceCellType;

#[test]
fn test_gmsh_output_regular_sphere() {
Expand Down
8 changes: 4 additions & 4 deletions grid/src/shapes.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! Functions to create simple example grids
use crate::grid::SerialGrid;
use solvers_element::cell::Triangle;
use solvers_tools::arrays::{AdjacencyList, Array2D};
use solvers_traits::cell::{ReferenceCell, ReferenceCellType};
use solvers_traits::grid::{Geometry, Grid, Topology};
use bempp_element::cell::Triangle;
use bempp_tools::arrays::{AdjacencyList, Array2D};
use bempp_traits::cell::{ReferenceCell, ReferenceCellType};
use bempp_traits::grid::{Geometry, Grid, Topology};

/// Create a regular sphere
///
Expand Down
Loading

0 comments on commit b0ed0ef

Please sign in to comment.