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
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
177dd52f
Commit
177dd52f
authored
2 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Rename variable hshp to hshpc
parent
cc07c771
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
Common/read_snapshot.f90
+10
-10
10 additions, 10 deletions
Common/read_snapshot.f90
with
10 additions
and
10 deletions
Common/read_snapshot.f90
+
10
−
10
View file @
177dd52f
...
...
@@ -4,7 +4,7 @@ module read_snapshot_m
contains
subroutine
read_snapshot
(
s
,
hshp
,
nlon
,
nlat
,
k
,
corner
,
step
,
copy
)
subroutine
read_snapshot
(
s
,
hshp
c
,
nlon
,
nlat
,
k
,
corner
,
step
,
copy
)
! Libraries:
use
contour_531
,
only
:
convert_to_ind
...
...
@@ -15,7 +15,7 @@ contains
use
read_eddy_m
,
only
:
read_eddy
type
(
snapshot
),
intent
(
out
)::
s
! completely defined
TYPE
(
shpc
),
intent
(
in
)::
hshp
(:)
TYPE
(
shpc
),
intent
(
in
)::
hshp
c
(:)
integer
,
intent
(
in
)::
nlon
,
nlat
! size of ssh array in input NetCDF, assuming no repeated point if
...
...
@@ -39,24 +39,24 @@ contains
!---------------------------------------------------------------------
if
(
size
(
hshp
)
==
1
)
then
if
(
size
(
hshp
c
)
==
1
)
then
i_shpc
=
1
else
call
hunt
([
hshp
%
d0
,
huge
(
0
)],
k
,
i_shpc
)
call
hunt
([
hshp
c
%
d0
,
huge
(
0
)],
k
,
i_shpc
)
end
if
if
(
k
==
hshp
(
i_shpc
)
%
d0
)
then
if
(
k
==
hshp
c
(
i_shpc
)
%
d0
)
then
ishape_first
=
0
else
! {k > hshp(i_shpc)%d0}
ishape_first
=
hshp
(
i_shpc
)
%
ishape_last
(
k
-
1
)
+
1
! {k > hshp
c
(i_shpc)%d0}
ishape_first
=
hshp
c
(
i_shpc
)
%
ishape_last
(
k
-
1
)
+
1
end
if
s
%
number_extr
=
hshp
(
i_shpc
)
%
ishape_last
(
k
)
-
ishape_first
+
1
s
%
number_extr
=
hshp
c
(
i_shpc
)
%
ishape_last
(
k
)
-
ishape_first
+
1
allocate
(
s
%
list
(
s
%
number_extr
))
do
ishape
=
ishape_first
,
hshp
(
i_shpc
)
%
ishape_last
(
k
)
call
read_eddy
(
e
,
date_read
,
eddy_i
,
hshp
(
i_shpc
),
ishape
)
do
ishape
=
ishape_first
,
hshp
c
(
i_shpc
)
%
ishape_last
(
k
)
call
read_eddy
(
e
,
date_read
,
eddy_i
,
hshp
c
(
i_shpc
),
ishape
)
! Check that all the eddies have the same date index:
if
(
date_read
/
=
k
)
then
...
...
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