Skip to content

Commit ff64907

Browse files
committed
WIP: Updating evaluators
1 parent a36a478 commit ff64907

File tree

4 files changed

+153
-256
lines changed

4 files changed

+153
-256
lines changed

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ criterion = { version = "0.5.*", features = ["html_reports"] }
5454

5555
[build-dependencies]
5656
cbindgen = "0.27.0"
57+
cc = "=1.2.7"
58+
5759

5860
[[bench]]
5961
name = "assembly_benchmark"

src/boundary_assemblers.rs

+4-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::boundary_assemblers::cell_pair_assemblers::{
99
use crate::boundary_assemblers::helpers::KernelEvaluator;
1010
use crate::boundary_assemblers::helpers::{equal_grids, RawData2D, RlstArray, SparseMatrixData};
1111
use crate::function::{FunctionSpaceTrait, LocalFunctionSpaceTrait};
12-
use bempp_distributed_tools::index_layout;
1312
use bempp_quadrature::duffy::{
1413
quadrilateral_duffy, quadrilateral_triangle_duffy, triangle_duffy, triangle_quadrilateral_duffy,
1514
};
@@ -122,19 +121,13 @@ impl<'o, T: RlstScalar + MatrixInverse, Integrand: BoundaryIntegrand<T = T>, K:
122121
BoundaryAssembler<'o, T, Integrand, K>
123122
{
124123
/// Assemble the singular part into a CSR matrix.
125-
pub fn assemble_singular<
126-
'a,
127-
C: Communicator,
128-
TrialLayout: IndexLayout<Comm = C>,
129-
TestLayout: IndexLayout<Comm = C>,
130-
Space: FunctionSpaceTrait<T = T>,
131-
>(
124+
pub fn assemble_singular<'a, C: Communicator, Space: FunctionSpaceTrait<T = T>>(
132125
&self,
133126
trial_space: &Space,
134-
trial_index_layout: &'a TrialLayout,
127+
trial_index_layout: &'a IndexLayout<'a, C>,
135128
test_space: &Space,
136-
test_index_layout: &'a TestLayout,
137-
) -> DistributedCsrMatrix<'a, TrialLayout, TestLayout, T, C>
129+
test_index_layout: &'a IndexLayout<'a, C>,
130+
) -> DistributedCsrMatrix<'a, T, C>
138131
where
139132
Space::LocalFunctionSpace: Sync,
140133
T: Equivalence,

0 commit comments

Comments
 (0)