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
b739ff8a
Commit
b739ff8a
authored
6 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Polish.
parent
8dff23d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tests/read_eddy.f
+1
-3
1 addition, 3 deletions
Tests/read_eddy.f
get_snapshot.f
+2
-0
2 additions, 0 deletions
get_snapshot.f
with
3 additions
and
3 deletions
Tests/read_eddy.f
+
1
−
3
View file @
b739ff8a
...
...
@@ -12,7 +12,7 @@ contains
use
contour_531
,
only
:
null_polyline
use
derived_types
,
only
:
eddy
use
gpc_f
,
only
:
shpobj2pol
,
polygon
use
nr_util
,
only
:
pi
use
nr_util
,
only
:
pi
,
deg_to_rad
use
shapelib
,
only
:
shpfileobject
,
shpobject
,
dbfreadattribute
,
&
shpdestroyobject
use
shapelib_03
,
only
:
shp_read_object_03
...
...
@@ -40,8 +40,6 @@ contains
! We need this intermediary variable because the kind of the
! argument to dbfreadattribute cannot be the default kind
real
,
parameter
::
deg_to_rad
=
pi
/
180.
!---------------------------------------------------------------------
call
dbfreadattribute
(
hshp_extremum
,
ishape
,
ifield
=
0
,
attr
=
attr
)
...
...
This diff is collapsed.
Click to expand it.
get_snapshot.f
+
2
−
0
View file @
b739ff8a
...
...
@@ -109,6 +109,7 @@ contains
[
nlon
,
nlat
])
! (min should have no effect except because of roundup error)
! Define nearby_extr:
selection
=
abs
(
pack
(
s
%
extr_map
(
llc
(
1
):
urc
(
1
),
llc
(
2
):
urc
(
2
)),
&
s
%
extr_map
(
llc
(
1
):
urc
(
1
),
llc
(
2
):
urc
(
2
))
>
0
&
.and.
s
%
extr_map
(
llc
(
1
):
urc
(
1
),
llc
(
2
):
urc
(
2
))
/
=
i
))
...
...
@@ -116,6 +117,7 @@ contains
allocate
(
nearby_extr
(
2
,
n_select
))
forall
(
l
=
1
:
n_select
)
&
nearby_extr
(:,
l
)
=
s
%
list_vis
(
selection
(
l
))
%
coord_extr
call
set_max_speed
(
s
%
list_vis
(
i
),
s
%
ind_extr
(:,
i
)
-
llc
+
1
,
&
nearby_extr
,
ssh
(
llc
(
1
):
urc
(
1
),
llc
(
2
):
urc
(
2
)),
&
u
(
llc
(
1
):
urc
(
1
),
llc
(
2
):
urc
(
2
)),
&
...
...
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