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
7956cb54
Commit
7956cb54
authored
6 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Polish.
parent
cd7598f2
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Tests/test_max_speed_contour_ssh.f
+5
-2
5 additions, 2 deletions
Tests/test_max_speed_contour_ssh.f
get_snapshot.f
+3
-2
3 additions, 2 deletions
get_snapshot.f
get_var.f
+2
-2
2 additions, 2 deletions
get_var.f
with
10 additions
and
6 deletions
Tests/test_max_speed_contour_ssh.f
+
5
−
2
View file @
7956cb54
...
...
@@ -20,8 +20,11 @@ program test_max_speed_contour_ssh
integer
ncid
,
varid
real
,
allocatable
::
ssh
(:,
:)
! (n_lon, n_lat) sea-surface height, in m
real
,
allocatable
::
u
(:,
:),
v
(:,
:)
! (n_lon, n_lat) wind, in m s-1
integer
::
ind_extr
(
2
)
=
[
19
,
11
]
! indices in the two dimensions of
! the extremum
integer
::
ind_extr
(
2
)
=
[
19
,
11
]
! indices in the two dimensions of the extremum, relative to lower
! left corner
integer
::
radius
=
3
namelist
/
main_nml
/
ilon_llc
,
ilat_llc
,
ilon_urc
,
ilat_urc
,
ind_extr
,
radius
...
...
This diff is collapsed.
Click to expand it.
get_snapshot.f
+
3
−
2
View file @
7956cb54
...
...
@@ -89,8 +89,9 @@ contains
new_fill_value
=
ieee_value
(
0.
,
IEEE_QUIET_NAN
))
call
get_var
(
periodic
,
max_radius
(
1
),
v
,
ncid
,
nlon
,
k
,
name
=
"v"
,
&
new_fill_value
=
ieee_value
(
0.
,
IEEE_QUIET_NAN
))
! (We will need quiet NaNs rather the original fill values for u
! and v when we compute the max-speed contours.)
! (We will need quiet NaNs rather the original fill values for
! u and v when we compute the max-speed contours and when we
! search the ssh of max-speed contours.)
call
nf95_close
(
ncid
)
call
set_all_outerm
(
s
,
min_amp
,
max_radius
,
step
,
periodic
,
ssh
,
&
...
...
This diff is collapsed.
Click to expand it.
get_var.f
+
2
−
2
View file @
7956cb54
...
...
@@ -8,7 +8,7 @@ contains
new_fill_value
)
! Read a NetCDF variable, change the missing value and extend it
! in longitude.
! in longitude
if periodic
.
! Libraries:
use
netcdf95
,
only
:
nf95_inq_varid
,
nf95_get_var
,
nf95_get_att
...
...
@@ -16,7 +16,7 @@ contains
logical
,
intent
(
in
)::
periodic
! grid is periodic in longitude
integer
,
intent
(
in
)::
max_rad_lon
! maximum radius of an eddy in
! longitude, in number of grid points
! longitude, in number of grid points
, used only if periodic
real
,
intent
(
out
)::
values
(
1
-
merge
(
max_rad_lon
,
0
,
periodic
):,
:)
! (1 - merge(max_rad_lon, 0, periodic):nlon + merge(max_rad_lon, 0,
...
...
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