Driver: remove dead add_classical_boundary_explicit function

This commit is contained in:
2022-08-22 00:51:53 -07:00
parent ff13a1e96c
commit e5c8bcff95
2 changed files with 1 additions and 10 deletions

View File

@@ -259,7 +259,7 @@ fn main() {
let mut driver = Driver::new(Sim::new( let mut driver = Driver::new(Sim::new(
sim_bounds(num_cores).to_index(feat_size), feat_size, sim_bounds(num_cores).to_index(feat_size), feat_size,
)); ));
driver.add_classical_boundary_explicit::<R, _>(sim_padding); driver.add_classical_boundary(sim_padding);
//////// create the wires and toroids //////// create the wires and toroids
driver.fill_region(&params.input0(), wire_mat); driver.fill_region(&params.input0(), wire_mat);

View File

@@ -162,15 +162,6 @@ impl<S: AbstractSim, Stim> Driver<S::Real, S, Stim> {
pub fn add_classical_boundary<C: Coord>(&mut self, thickness: C) pub fn add_classical_boundary<C: Coord>(&mut self, thickness: C)
where S::Material: From<mat::IsomorphicConductor<S::Real>> where S::Material: From<mat::IsomorphicConductor<S::Real>>
{
self.add_classical_boundary_explicit::<S::Real, _>(thickness)
}
// TODO: can probably remove this function
/// the CPU code is parameterized over `Real`: you'll need to use this interface to get access
/// to that, if using a CPU driver. otherwise, use `add_classical_boundary`
pub fn add_classical_boundary_explicit<R: Real, C: Coord>(&mut self, thickness: C)
where S::Material: From<mat::IsomorphicConductor<R>>
{ {
let timestep = self.state.timestep(); let timestep = self.state.timestep();
self.state.fill_boundary_using(thickness, |boundary_ness| { self.state.fill_boundary_using(thickness, |boundary_ness| {