Skip to content

Commit

Permalink
WIP: Updating evaluators
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke committed Jan 12, 2025
1 parent a36a478 commit ff64907
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 256 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ criterion = { version = "0.5.*", features = ["html_reports"] }

[build-dependencies]
cbindgen = "0.27.0"
cc = "=1.2.7"


[[bench]]
name = "assembly_benchmark"
Expand Down
15 changes: 4 additions & 11 deletions src/boundary_assemblers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::boundary_assemblers::cell_pair_assemblers::{
use crate::boundary_assemblers::helpers::KernelEvaluator;
use crate::boundary_assemblers::helpers::{equal_grids, RawData2D, RlstArray, SparseMatrixData};
use crate::function::{FunctionSpaceTrait, LocalFunctionSpaceTrait};
use bempp_distributed_tools::index_layout;
use bempp_quadrature::duffy::{
quadrilateral_duffy, quadrilateral_triangle_duffy, triangle_duffy, triangle_quadrilateral_duffy,
};
Expand Down Expand Up @@ -122,19 +121,13 @@ impl<'o, T: RlstScalar + MatrixInverse, Integrand: BoundaryIntegrand<T = T>, K:
BoundaryAssembler<'o, T, Integrand, K>
{
/// Assemble the singular part into a CSR matrix.
pub fn assemble_singular<
'a,
C: Communicator,
TrialLayout: IndexLayout<Comm = C>,
TestLayout: IndexLayout<Comm = C>,
Space: FunctionSpaceTrait<T = T>,
>(
pub fn assemble_singular<'a, C: Communicator, Space: FunctionSpaceTrait<T = T>>(
&self,
trial_space: &Space,
trial_index_layout: &'a TrialLayout,
trial_index_layout: &'a IndexLayout<'a, C>,
test_space: &Space,
test_index_layout: &'a TestLayout,
) -> DistributedCsrMatrix<'a, TrialLayout, TestLayout, T, C>
test_index_layout: &'a IndexLayout<'a, C>,
) -> DistributedCsrMatrix<'a, T, C>
where
Space::LocalFunctionSpace: Sync,
T: Equivalence,
Expand Down
Loading

0 comments on commit ff64907

Please sign in to comment.