Skip to content

Commit a4decaf

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

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
@@ -597,7 +597,7 @@ function add_cylinder!(Phase, Temp, Grid::AbstractGeneralGrid; # required input
597597

598598
# Compute thermal structure accordingly. See routines below for different options
599599
if !isnothing(T)
600-
Temp[ind_flat] = compute_thermal_structure(Temp[ind_flat], X[ind], Y[ind], Z[ind], Phase[ind_flat], T)
600+
@views Temp[ind_flat] .= compute_thermal_structure(Temp[ind_flat], X[ind], Y[ind], Z[ind], Phase[ind_flat], T)
601601
end
602602

603603
# Set the phase. Different routines are available for that - see below.

0 commit comments

Comments
 (0)