Skip to content

Commit

Permalink
Fix fixedLayer and std5b test
Browse files Browse the repository at this point in the history
Tests with nonzero epsilonprime failed after fix of sign in prefactor of
Slonczewski's damping-like torque (commit 53dbec4).

Solution: update the expected values in the tests
  • Loading branch information
JeroenMulkers committed Aug 6, 2018
1 parent c5d4494 commit 60894d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/fixedlayer.mx3
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

randomSeed := 1234567

randSeed(randomSeed)
randSeed(randomSeed)

Nx := 64
Ny := 32
Expand All @@ -13,7 +13,7 @@ Nz := 16
sX := 128e-9
sY := 64e-9
sZ := 32e-9

setgridsize(Nx, Ny, Nz)
setcellsize(sX/Nx, sY/Ny, sZ/Nz)

Expand All @@ -30,9 +30,9 @@ DisableZhangLiTorque = true

Jtot := -0.008 // total current in amps
carea := sX * sY
jc := Jtot / carea
jc := Jtot / carea
print("Current density is: " , jc)

J = vector(0, 0, jc)

grainSize := 4e-9 // m
Expand All @@ -47,5 +47,5 @@ for i:=0; i<maxRegion; i++{
print(STtorque.average())

TOL := 1e-7
// testing against mumax3.9.1
expectv("STtorque", STtorque.average(), vector(0.00020761338237207383, -6.879508873680606e-05, -0.00023736029106657952), TOL)
// testing against mumax3.10
expectv("STtorque", STtorque.average(), vector(0.0002079093683278188,-6.888924690429121e-05,-0.0002376949996687472), TOL)
2 changes: 1 addition & 1 deletion test/std5b.mx3
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ m = uniform(1,0,0)

run(0.5e-9)
TOL := 1e-5
expectv("m", m.average(), vector(-0.9538384675979614, -0.27802664041519165, 0.0052331965416669846), TOL)
expectv("m", m.average(), vector(-0.953765869140625,-0.27836909890174866,0.005288289859890938), TOL)

0 comments on commit 60894d5

Please sign in to comment.