Skip to content

Commit 577227e

Browse files
committed
Change two arrays into static arrays
1 parent e190fb1 commit 577227e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Setup_geometry.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,8 @@ function find_slab_distance!(ls, d, X,Y,Z, Top, Bottom, trench::Trench)
15131513

15141514
l = 0 # length at the trench position
15151515

1516+
D = @SVector [0.0, -D0,-D0,0.0]
1517+
15161518
# Construct the slab
15171519
for i = 1:(n_seg-1)
15181520

@@ -1548,9 +1550,8 @@ function find_slab_distance!(ls, d, X,Y,Z, Top, Bottom, trench::Trench)
15481550
ind_seg = ind_s[ind]
15491551

15501552
# Prepare the variable to interpolate {I put here because to allow also a variation of thickness of the slab}
1551-
D = [0.0,-D0,-D0,0.0];
15521553

1553-
L = [l,l,ln,ln];
1554+
L = @SVector [l,l,ln,ln];
15541555

15551556
# Interpolations
15561557
points = [pa[1] pa[2];pb[1] pb[2];pc[1] pc[2];pd[1] pd[2]]'

0 commit comments

Comments
 (0)