Skip to main content

verify_div_curl_zero_2nd

Function verify_div_curl_zero_2nd 

pub fn verify_div_curl_zero_2nd(
    grid: &Grid3dSpec,
    bc: BoundaryCondition,
    ex: &[f64],
    ey: &[f64],
    ez: &[f64],
    hx: &[f64],
    hy: &[f64],
    hz: &[f64],
    scratch_cx: &mut [f64],
    scratch_cy: &mut [f64],
    scratch_cz: &mut [f64],
    scratch_div: &mut [f64],
) -> Result<(f64, f64), EmfOperatorError>
Expand description

Verify the exact staggered discrete vector identity $\nabla \cdot (\nabla \times \mathbf{A}) = 0$.