/*
    Test Hopf index calculation for an analytic hopfion texture
*/

tol := 0.01

setgridsize(128, 128, 128)
setcellsize(1, 1, 1)

m = Uniform(0, 0, 1)

expect("Hopf index" , ext_hopfindex_fivepointstencil, 0, tol)
expect("Hopf index" , ext_hopfindex_solidangle, 0, tol)
expect("Hopf index" , ext_hopfindex_solidanglefourier, 0, tol)
expect("Hopf index" , ext_hopfindex_twopointstencil, 0, tol)
