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

Polish

parent 60753b4f
No related branches found
No related tags found
No related merge requests found
...@@ -53,8 +53,10 @@ program test_mean_speed ...@@ -53,8 +53,10 @@ program test_mean_speed
+ ceiling((corner(1) - min_lon_p) / twopi) * twopi + ceiling((corner(1) - min_lon_p) / twopi) * twopi
! Check that extremum is in polyline and grid: ! Check that extremum is in polyline and grid:
lon_max = corner(1) + (size(ssh, 1) - 2 * merge(max_radius(1), 0, periodic) & lon_max = corner(1) + (size(ssh, 1) - 2 * merge(max_radius(1), 0, periodic) &
- 1) * step(1) - 1) * step(1)
if (corner(1) > center(1) .or. center(1) > lon_max & if (corner(1) > center(1) .or. center(1) > lon_max &
.or. minval(p%part(1)%points(1, :)) > center(1) & .or. minval(p%part(1)%points(1, :)) > center(1) &
.or. center(1) > maxval(p%part(1)%points(1, :))) then .or. center(1) > maxval(p%part(1)%points(1, :))) then
......
...@@ -10,7 +10,7 @@ contains ...@@ -10,7 +10,7 @@ contains
! computes the mean azimuthal speed at interpolation points. We ! computes the mean azimuthal speed at interpolation points. We
! assume (and do not check) that the longitude of the center has ! assume (and do not check) that the longitude of the center has
! been brought modulo 2 pi in the longitude range of the polyline ! been brought modulo 2 pi in the longitude range of the polyline
! and that the polyline is in the longitude range of the grid ! `p` and that the polyline is in the longitude range of the grid
! corresponding to corner and step. ! corresponding to corner and step.
use, intrinsic:: iso_fortran_env, only: error_unit use, intrinsic:: iso_fortran_env, only: error_unit
......
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