From 745de1737ec789bac7bcd7563e9334f37d29303f Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Wed, 21 Aug 2024 16:55:40 +0100 Subject: [PATCH] simplify --- src/assembly/boundary/assemblers.rs | 30 +++++++++-------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/src/assembly/boundary/assemblers.rs b/src/assembly/boundary/assemblers.rs index 4f2dae9b..f9ffe15d 100644 --- a/src/assembly/boundary/assemblers.rs +++ b/src/assembly/boundary/assemblers.rs @@ -151,19 +151,14 @@ where /// Assemble the contribution to the terms of a matrix for a batch of pairs of adjacent cells #[allow(clippy::too_many_arguments)] -fn assemble_batch_singular< - T: RlstScalar + MatrixInverse, - TestGrid: Grid, - TrialGrid: Grid, - Element: FiniteElement + Sync, ->( +fn assemble_batch_singular>( assembler: &impl BoundaryAssembler, deriv_size: usize, shape: [usize; 2], trial_cell_type: ReferenceCellType, test_cell_type: ReferenceCellType, - trial_space: &impl FunctionSpace, - test_space: &impl FunctionSpace, + trial_space: &Space, + test_space: &Space, cell_pairs: &[(usize, usize)], trial_points: &RlstArray, test_points: &RlstArray, @@ -230,20 +225,15 @@ fn assemble_batch_singular< /// Assemble the contribution to the terms of a matrix for a batch of non-adjacent cells #[allow(clippy::too_many_arguments)] -fn assemble_batch_nonadjacent< - T: RlstScalar + MatrixInverse, - TestGrid: Grid, - TrialGrid: Grid, - Element: FiniteElement + Sync, ->( +fn assemble_batch_nonadjacent>( assembler: &impl BoundaryAssembler, deriv_size: usize, output: &RawData2D, trial_cell_type: ReferenceCellType, test_cell_type: ReferenceCellType, - trial_space: &impl FunctionSpace, + trial_space: &Space, trial_cells: &[usize], - test_space: &impl FunctionSpace, + test_space: &Space, test_cells: &[usize], trial_points: &RlstArray, trial_weights: &[T::Real], @@ -319,17 +309,15 @@ fn assemble_batch_nonadjacent< #[allow(clippy::too_many_arguments)] fn assemble_batch_singular_correction< T: RlstScalar + MatrixInverse, - TestGrid: Grid, - TrialGrid: Grid, - Element: FiniteElement + Sync, + Space: FunctionSpace, >( assembler: &impl BoundaryAssembler, deriv_size: usize, shape: [usize; 2], trial_cell_type: ReferenceCellType, test_cell_type: ReferenceCellType, - trial_space: &impl FunctionSpace, - test_space: &impl FunctionSpace, + trial_space: &Space, + test_space: &Space, cell_pairs: &[(usize, usize)], trial_points: &RlstArray, trial_weights: &[T::Real],