Skip to content

Commit

Permalink
fix DefRegionCell: x,y,z was still swapped (z,y,x)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnex committed Apr 14, 2014
1 parent 1cb6e87 commit 330d734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (r *Regions) HostList() []byte {

func DefRegionCell(id int, x, y, z int) {
defRegionId(id)
index := data.Index(Mesh().Size(), z, y, x)
index := data.Index(Mesh().Size(), x, y, z)
regions.gpuCache.Set(index, byte(id))
}

Expand Down
2 changes: 1 addition & 1 deletion mag/demagkernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func CalcDemagKernel(inputSize, pbc [3]int, cellsize [3]float64, accuracy float6
return kernel
}

// integration ranges for kernel
// integration ranges for kernel. size=kernelsize, so padded for no PBC, not padded for PBC
func kernelRanges(size, pbc [3]int) (r1, r2 [3]int) {
for c := 0; c < 3; c++ {
if pbc[c] == 0 {
Expand Down

0 comments on commit 330d734

Please sign in to comment.