Skip to content
Snippets Groups Projects
Commit 9868d792 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Move instructions around

Preparing for the new structure. Note that the code is
degraded (temporarily) because the definition of `polyline_1` is
repeated uselessly inside the loop on `l`.
parent b9351ed1
No related branches found
No related tags found
No related merge requests found
...@@ -72,14 +72,6 @@ contains ...@@ -72,14 +72,6 @@ contains
n_select = size(selection) n_select = size(selection)
if (n_select /= 0) then
if (e1%speed_cont%n_points /= 0) then
polyline_1 = e1%speed_cont%polyline
else
polyline_1 = e1%out_cont%polyline
end if
end if
DO l = 1, n_select DO l = 1, n_select
i2 = selection(l) i2 = selection(l)
associate (e2 => flow(j)%list(i2)) associate (e2 => flow(j)%list(i2))
...@@ -87,6 +79,12 @@ contains ...@@ -87,6 +79,12 @@ contains
! delta} ! delta}
delta_long = e1%extr%coord(1) - e2%extr%coord(1) delta_long = e1%extr%coord(1) - e2%extr%coord(1)
if (e1%speed_cont%n_points /= 0) then
polyline_1 = e1%speed_cont%polyline
else
polyline_1 = e1%out_cont%polyline
end if
if (e2%speed_cont%n_points /= 0) then if (e2%speed_cont%n_points /= 0) then
polyline_2 = copy_shift(e2%speed_cont%polyline, delta_long) polyline_2 = copy_shift(e2%speed_cont%polyline, delta_long)
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment