Skip to content

Commit 8fb17a3

Browse files
Update src/Setup_geometry.jl
Co-authored-by: Albert de Montserrat <58044444+albert-de-montserrat@users.noreply.github.com>
1 parent fb57455 commit 8fb17a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Setup_geometry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function add_box!(Phase, Temp, Grid::AbstractGeneralGrid; # required input
259259
end
260260

261261
# Set the phase. Different routines are available for that - see below.
262-
Phase[ind_flat] = compute_phase(Phase[ind_flat], Temp[ind_flat], Xrot[ind], Yrot[ind], Zrot[ind], phase)
262+
@views Phase[ind_flat] .= compute_phase(Phase[ind_flat], Temp[ind_flat], Xrot[ind], Yrot[ind], Zrot[ind], phase)
263263

264264
return nothing
265265
end

0 commit comments

Comments
 (0)