Skip to content

Commit

Permalink
engine: magnetoelastic: for force calculation B1 and B2 should be uni…
Browse files Browse the repository at this point in the history
…form for now
  • Loading branch information
godsic committed Sep 27, 2018
1 parent baedc7b commit 9dbef6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/ext_magnetoelastic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package engine
import (
"github.com/mumax/3/cuda"
"github.com/mumax/3/data"
"github.com/mumax/3/util"
)

var (
Expand Down Expand Up @@ -75,6 +76,8 @@ func GetMagnetoelasticForceDensity(dst *data.Slice) {
return
}

util.AssertMsg(B1.IsUniform() && B2.IsUniform(), "Magnetoelastic: B1, B2 must be uniform")

b1 := B1.MSlice()
defer b1.Recycle()

Expand Down

0 comments on commit 9dbef6e

Please sign in to comment.