Skip to content

Commit 7016142

Browse files
Update src/Setup_geometry.jl
Co-authored-by: Albert de Montserrat <[email protected]>
1 parent c0f9cdc commit 7016142

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
@@ -253,7 +253,7 @@ function add_box!(Phase, Temp, Grid::AbstractGeneralGrid; # required input
253253
# Compute thermal structure accordingly. See routines below for different options
254254
if T != nothing
255255
if isa(T,LithosphericTemp)
256-
Phase[ind_flat] = compute_phase(Phase[ind_flat], Temp[ind_flat], Xrot[ind], Yrot[ind], Zrot[ind], phase)
256+
@views Phase[ind_flat] .= compute_phase(Phase[ind_flat], Temp[ind_flat], Xrot[ind], Yrot[ind], Zrot[ind], phase)
257257
end
258258
Temp[ind_flat] = compute_thermal_structure(Temp[ind_flat], Xrot[ind], Yrot[ind], Zrot[ind], Phase[ind_flat], T)
259259
end

0 commit comments

Comments
 (0)