Function gauss_magnetic_residual
pub fn gauss_magnetic_residual(
grid: &Grid3dSpec,
bc: BoundaryCondition,
bx_field: &[f64],
by_field: &[f64],
bz_field: &[f64],
residual_out: &mut [f64],
) -> Result<f64, EmfOperatorError>Expand description
Compute the magnetic Gauss-law residual $r_B = \nabla \cdot \mathbf{B}$.