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
ae7c1ccf
Commit
ae7c1ccf
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Remove intermediary variable m
parent
4f28a595
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Overlap/overlap.f90
+4
-4
4 additions, 4 deletions
Overlap/overlap.f90
with
4 additions
and
4 deletions
Overlap/overlap.f90
+
4
−
4
View file @
ae7c1ccf
...
...
@@ -42,7 +42,7 @@ contains
integer
i1
! eddy index of predecessor
integer
i2
! eddy index of successor
integer
l
,
n_select
,
m
integer
l
,
n_select
type
(
polyline
)
polyline_1
,
polyline_2
type
(
polygon
)
res_pol
...
...
@@ -99,9 +99,9 @@ contains
! Shift the longitudes of polyline_2 to values close to the
! longitude of extremum i1:
m
=
floor
((
flow
(
j
-
delta
)
%
list_vis
(
i1
)
%
coord_extr
(
1
)
&
-
flow
(
j
)
%
list_vis
(
i
2
)
%
coord_extr
(
1
)
)
/
twopi
+
0.5
)
polyline_2
%
points
(
1
,
:)
=
polyline_2
%
points
(
1
,
:)
+
m
*
twopi
polyline_2
%
points
(
1
,
:)
=
polyline_2
%
points
(
1
,
:
)
&
+
floor
((
flow
(
j
-
delta
)
%
list_vis
(
i
1
)
%
coord_extr
(
1
)
&
-
flow
(
j
)
%
list_vis
(
i2
)
%
coord_extr
(
1
))
/
twopi
+
0.5
)
*
twopi
call
gpc_polygon_clip_f
(
GPC_INT
,
&
polygon
(
nparts
=
1
,
part
=
[
polyline_1
],
hole
=
[
.false.
]),
&
...
...
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