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

Save the entry value of `n_cont` in `i_outer`

parent 9eb481a8
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,11 @@ contains
! Local:
real, allocatable:: speed(:) ! (n_cont) speed on the contour
integer i
integer i, i_outer
!---------------------------------------------------------------
i_outer = n_cont
allocate(speed(n_cont))
do i = 1, n_cont
......@@ -68,7 +69,7 @@ contains
! All speed values are NaN
e%speed_cont = null_ssh_contour()
e%max_speed = missing_speed
else if (i == n_cont) then
else if (i == i_outer) then
! Maximum speed on the outermost contour
e%speed_cont = null_ssh_contour()
e%max_speed = speed(i)
......
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