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
Authenticating with a password
with git over http
works again
. More information
here
.
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
b1102313
Commit
b1102313
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix: process fill values of velocity
parent
cee3e995
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Inst_eddies/Tests/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Inst_eddies/Tests/CMakeLists.txt
Inst_eddies/Tests/test_set_max_speed.f90
+12
-8
12 additions, 8 deletions
Inst_eddies/Tests/test_set_max_speed.f90
with
13 additions
and
9 deletions
Inst_eddies/Tests/CMakeLists.txt
+
1
−
1
View file @
b1102313
...
...
@@ -100,7 +100,7 @@ add_executable(test_set_max_speed
${
PROJECT_SOURCE_DIR
}
/Common/read_field_indices.F90
${
PROJECT_SOURCE_DIR
}
/Common/read_eddy.f90
${
PROJECT_SOURCE_DIR
}
/Common/shpc_create.f90
${
PROJECT_SOURCE_DIR
}
/Common/write_eddy.f90
)
${
PROJECT_SOURCE_DIR
}
/Common/write_eddy.f90
get_var.f90
)
target_link_libraries
(
test_set_max_speed Geometry::geometry
Numer_Rec_95::numer_rec_95 NetCDF95::netcdf95 Shapelib_03::shapelib_03
...
...
This diff is collapsed.
Click to expand it.
Inst_eddies/Tests/test_set_max_speed.f90
+
12
−
8
View file @
b1102313
program
test_set_max_speed
use
,
intrinsic
::
ISO_FORTRAN_ENV
use
,
intrinsic
::
ieee_arithmetic
,
only
:
ieee_value
,
IEEE_QUIET_NAN
! Libraries:
use
jumble
,
only
:
new_unit
,
count_lines
,
get_command_arg_dyn
...
...
@@ -10,6 +12,7 @@ program test_set_max_speed
use
nr_util
,
only
:
deg_to_rad
use
derived_types
,
only
:
eddy
,
shpc
use
get_var_m
,
only
:
get_var
use
read_eddy_m
,
only
:
read_eddy
use
set_max_speed_m
,
only
:
set_max_speed
use
shpc_close_m
,
only
:
shpc_close
...
...
@@ -57,15 +60,16 @@ program test_set_max_speed
print
*
,
"Reading from uv.nc..."
call
nf95_open
(
"uv.nc"
,
nf90_nowrite
,
ncid
)
allocate
(
u
(
nlon
,
nlat
),
v
(
nlon
,
nlat
))
call
nf95_inq_varid
(
ncid
,
"ugos"
,
varid
)
call
nf95_get_var
(
ncid
,
varid
,
u
)
call
nf95_inq_varid
(
ncid
,
"vgos"
,
varid
)
call
nf95_get_var
(
ncid
,
varid
,
v
)
call
get_var
(
periodic
=
.false.
,
max_rad_lon
=
0
,
values
=
u
,
ncid
=
ncid
,
&
nlon
=
nlon
,
name
=
"ugos"
,
&
new_fill_value
=
ieee_value
(
0.
,
IEEE_QUIET_NAN
))
call
get_var
(
periodic
=
.false.
,
max_rad_lon
=
0
,
values
=
v
,
ncid
=
ncid
,
&
nlon
=
nlon
,
name
=
"vgos"
,
&
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 and when we search the
! ssh of max-speed contours.)
call
nf95_close
(
ncid
)
print
*
,
"Reading from shapefiles..."
...
...
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