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

Polish.

parent cd7598f2
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,11 @@ program test_max_speed_contour_ssh ...@@ -20,8 +20,11 @@ program test_max_speed_contour_ssh
integer ncid, varid integer ncid, varid
real, allocatable:: ssh(:, :) ! (n_lon, n_lat) sea-surface height, in m real, allocatable:: ssh(:, :) ! (n_lon, n_lat) sea-surface height, in m
real, allocatable:: u(:, :), v(:, :) ! (n_lon, n_lat) wind, in m s-1 real, allocatable:: u(:, :), v(:, :) ! (n_lon, n_lat) wind, in m s-1
integer:: ind_extr(2) = [19, 11] ! indices in the two dimensions of
! the extremum integer:: ind_extr(2) = [19, 11]
! indices in the two dimensions of the extremum, relative to lower
! left corner
integer:: radius = 3 integer:: radius = 3
namelist /main_nml/ ilon_llc, ilat_llc, ilon_urc, ilat_urc, ind_extr, radius namelist /main_nml/ ilon_llc, ilat_llc, ilon_urc, ilat_urc, ind_extr, radius
......
...@@ -89,8 +89,9 @@ contains ...@@ -89,8 +89,9 @@ contains
new_fill_value = ieee_value(0., IEEE_QUIET_NAN)) new_fill_value = ieee_value(0., IEEE_QUIET_NAN))
call get_var(periodic, max_radius(1), v, ncid, nlon, k, name = "v", & call get_var(periodic, max_radius(1), v, ncid, nlon, k, name = "v", &
new_fill_value = ieee_value(0., IEEE_QUIET_NAN)) new_fill_value = ieee_value(0., IEEE_QUIET_NAN))
! (We will need quiet NaNs rather the original fill values for u ! (We will need quiet NaNs rather the original fill values for
! and v when we compute the max-speed contours.) ! u and v when we compute the max-speed contours and when we
! search the ssh of max-speed contours.)
call nf95_close(ncid) call nf95_close(ncid)
call set_all_outerm(s, min_amp, max_radius, step, periodic, ssh, & call set_all_outerm(s, min_amp, max_radius, step, periodic, ssh, &
......
...@@ -8,7 +8,7 @@ contains ...@@ -8,7 +8,7 @@ contains
new_fill_value) new_fill_value)
! Read a NetCDF variable, change the missing value and extend it ! Read a NetCDF variable, change the missing value and extend it
! in longitude. ! in longitude if periodic.
! Libraries: ! Libraries:
use netcdf95, only: nf95_inq_varid, nf95_get_var, nf95_get_att use netcdf95, only: nf95_inq_varid, nf95_get_var, nf95_get_att
...@@ -16,7 +16,7 @@ contains ...@@ -16,7 +16,7 @@ contains
logical, intent(in):: periodic ! grid is periodic in longitude logical, intent(in):: periodic ! grid is periodic in longitude
integer, intent(in):: max_rad_lon ! maximum radius of an eddy in integer, intent(in):: max_rad_lon ! maximum radius of an eddy in
! longitude, in number of grid points ! longitude, in number of grid points, used only if periodic
real, intent(out):: values(1 - merge(max_rad_lon, 0, periodic):, :) real, intent(out):: values(1 - merge(max_rad_lon, 0, periodic):, :)
! (1 - merge(max_rad_lon, 0, periodic):nlon + merge(max_rad_lon, 0, ! (1 - merge(max_rad_lon, 0, periodic):nlon + merge(max_rad_lon, 0,
......
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