pub fn wavefront( s: &System, field: FieldSel, w: Option<usize>, n: usize, ref_primary: bool, ) -> Result<Wavefront>