Driver: remove dead add_classical_boundary_explicit
function
This commit is contained in:
@@ -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(¶ms.input0(), wire_mat);
|
driver.fill_region(¶ms.input0(), wire_mat);
|
||||||
|
@@ -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| {
|
||||||
|
Reference in New Issue
Block a user