// A refused write leaves no current on its edges. flag[0] is 1 when the wedge kept the write. // No paper equation. override N: u32; @group(0) @binding(0) var flag: array; @group(0) @binding(1) var e: array; @compute @workgroup_size(64) fn main(@builtin(global_invocation_id) gid: vec3u) { if (flag[0] != 0u || gid.x >= N) { return; } e[gid.x] = 0.0; }