Skip to content

Commit

Permalink
fix #144 (make-uniform-array -> make-typed-array) (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
thchr authored Apr 19, 2022
1 parent 2d88a62 commit 84de012
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mpb/mpb.scm.in
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
(lambda (object)
(let ((sz (object-property-value object 'size))
(i (object-property-value object 'matgrid-init)))
(let ((g (apply make-uniform-array
(cons 0.333 (map inexact->exact (vector->list sz))))))
(array-index-map! g (lambda (x y z)
(let ((g (apply make-typed-array
(cons 'f64 (cons *unspecified* (map inexact->exact (vector->list sz)))))))
(array-index-map! g (lambda (x y z)
(i (- (/ x (vector3-x sz)) 0.5)
(- (/ y (vector3-y sz)) 0.5)
(- (/ z (vector3-z sz)) 0.5))))
Expand Down

0 comments on commit 84de012

Please sign in to comment.