Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Detection eddies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
602da465
Commit
602da465
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Shift the longitude of the polyline
So that it is in the grid.
parent
889df293
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Inst_eddies/Tests/test_mean_speed.f90
+7
-0
7 additions, 0 deletions
Inst_eddies/Tests/test_mean_speed.f90
with
7 additions
and
0 deletions
Inst_eddies/Tests/test_mean_speed.f90
+
7
−
0
View file @
602da465
...
...
@@ -28,6 +28,7 @@ program test_mean_speed
TYPE
(
shpobject
)
psobject
type
(
polygon
)
p
character
(
len
=
:),
allocatable
::
contour_filename
real
min_lon_p
! minimum longitude of p, in degrees
namelist
/
main_nml
/
center
,
ishape
...
...
@@ -71,6 +72,12 @@ program test_mean_speed
CALL
shpclose
(
hshp
)
p
=
shpobj2pol
(
psobject
)
call
shpdestroyobject
(
psobject
)
! Shift the longitude of the polyline so that it is in the grid:
min_lon_p
=
minval
(
p
%
part
(
1
)
%
points
(
1
,
:))
p
%
part
(
1
)
%
points
(
1
,
:)
=
p
%
part
(
1
)
%
points
(
1
,
:)
&
+
ceiling
((
corner
(
1
)
-
min_lon_p
)
/
360.
)
*
360.
p
%
part
(
1
)
%
points
=
p
%
part
(
1
)
%
points
*
deg_to_rad
print
*
,
"mean azimuthal speed = "
,
mean_speed
(
u
,
v
,
p
%
part
(
1
),
&
center
*
deg_to_rad
,
corner
*
deg_to_rad
,
step
*
deg_to_rad
),
"m s-1"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment