Skip to content

Commit 41e9b43

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

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

361361
# Set the phase. Different routines are available for that - see below.
362-
Phase[ind_flat] = compute_phase(Phase[ind_flat], Temp[ind_flat], X[ind], Y[ind], Z[ind], phase)
362+
@views Phase[ind_flat] .= compute_phase(Phase[ind_flat], Temp[ind_flat], X[ind], Y[ind], Z[ind], phase)
363363

364364
return nothing
365365
end

0 commit comments

Comments
 (0)