Skip to content

Commit a34d1f1

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

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
@@ -355,7 +355,7 @@ function add_layer!(Phase, Temp, Grid::AbstractGeneralGrid; # required input
355355

356356
# Compute thermal structure accordingly. See routines below for different options
357357
if !isnothing(T)
358-
Temp[ind_flat] = compute_thermal_structure(Temp[ind_flat], X[ind], Y[ind], Z[ind], Phase[ind_flat], T)
358+
@views Temp[ind_flat] .= compute_thermal_structure(Temp[ind_flat], X[ind], Y[ind], Z[ind], Phase[ind_flat], T)
359359
end
360360

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

0 commit comments

Comments
 (0)