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

Rename variable i to `eddy_index`

We are going to need i for something else.
parent 83a7a4c7
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ program test_set_max_speed
logical cyclone
logical periodic ! grid is periodic in longitude
integer nlon, nlat, d, i, n_cont
integer nlon, nlat, d, eddy_index, n_cont
real, allocatable:: ssh(:, :) ! (nlon, nlat) sea-surface height, in m
real, allocatable:: u(:, :), v(:, :) ! (nlon, nlat) wind, in m s-1
type(eddy) e
......@@ -49,7 +49,7 @@ program test_set_max_speed
print *, "test_set_max_speed: Reading from shapefiles..."
call get_command_arg_dyn(3, shpc_dir, "Required 3rd argument: SHPC-directory")
call shpc_open(hshpc, shpc_dir, cyclone, slice = 0, pszaccess = "rb")
call read_eddy(e, d, i, hshpc, ishape = 0)
call read_eddy(e, d, eddy_index, hshpc, ishape = 0)
CALL shpc_close(hshpc)
if (.not. periodic) nlon = size(ssh, 1)
nlat = size(ssh, 2)
......@@ -76,7 +76,7 @@ program test_set_max_speed
v(llc(1):urc(1), llc(2):urc(2)), corner_window, step)
call shpc_create(hshpc, shpc_dir = "SHPC", cyclone = cyclone, slice = 0, &
grid_lon_lat = .true.)
call write_eddy(e, hshpc, d, i)
call write_eddy(e, hshpc, d, eddy_index)
write(hshpc%unit, fmt = *) 0
CALL shpc_close(hshpc)
print *, 'test_set_max_speed: Created "SHPC".'
......
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