stim: remove TimeVarying3
`TimeVarying`(1) is enough for what we want.
This commit is contained in:
@@ -7,7 +7,7 @@ use coremem::{Driver, mat, meas};
|
||||
use coremem::geom::{Coord as _, Meters, Torus};
|
||||
use coremem::sim::spirv::{SpirvSim, WgpuBackend};
|
||||
use coremem::sim::units::Seconds;
|
||||
use coremem::stim::{CurlStimulus, Sinusoid1, TimeVarying as _};
|
||||
use coremem::stim::{CurlStimulus, Sinusoid, StimExt as _};
|
||||
|
||||
|
||||
fn main() {
|
||||
@@ -78,7 +78,7 @@ fn main() {
|
||||
|
||||
// helper to schedule a stimulus at the provided start time/duration.
|
||||
let mut add_drive_pulse = |region: &Torus, start, duration, amp| {
|
||||
let wave = Sinusoid1::from_wavelength(amp, duration * 2.0)
|
||||
let wave = Sinusoid::from_wavelength(amp, duration * 2.0)
|
||||
.half_cycle()
|
||||
.shifted(start);
|
||||
driver.add_stimulus(CurlStimulus::new(
|
||||
|
Reference in New Issue
Block a user