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

Redefine `n_max_cont`

Follow commit d540a1f3.
parent 7971ae19
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ contains
type(ssh_contour), intent(out):: out_cont
type(ssh_contour), intent(out):: cont_list(:) ! (n_max_cont + 1)
type(ssh_contour), intent(out):: cont_list(:) ! (n_max_cont)
! Contour list. The outermost contour is element n_cont. The
! contours are in monotonic order of ssh. If n_cont >= 2,
! cont_list(:n_cont - 1)%area is missing and cont_list(:n_cont -
......@@ -87,7 +87,7 @@ contains
!-----------------------------------------------------------------
n_max_cont = size(cont_list) - 1
n_max_cont = size(cont_list)
n_cont = 0
cont_list(1)%polyline = good_contour(corner, step, ssh, innermost_level_2, &
coord_extr, outside_points)
......@@ -123,7 +123,7 @@ contains
if (cont_list(n_cont + 1)%n_points /= 0) then
cont_list(n_cont + 1)%ssh = level_try
if (n_cont == n_max_cont) then
if (n_cont == n_max_cont - 1) then
! Replace the previous good contour found
cont_list(n_cont) = cont_list(n_cont + 1)
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