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
25cec1eb
Commit
25cec1eb
authored
6 months ago
by
GUEZ Lionel
Browse files
Options
Downloads
Patches
Plain Diff
Read `uniform_lon_lat` from `grid_nml.txt`
In program `test_read_eddy`.
parent
d43d67a6
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
Overlap/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Overlap/CMakeLists.txt
Overlap/Tests/CMakeLists.txt
+1
-0
1 addition, 0 deletions
Overlap/Tests/CMakeLists.txt
Overlap/Tests/test_read_eddy.f90
+3
-1
3 additions, 1 deletion
Overlap/Tests/test_read_eddy.f90
with
5 additions
and
2 deletions
Overlap/CMakeLists.txt
+
1
−
1
View file @
25cec1eb
...
@@ -26,7 +26,7 @@ target_sources(test_overlap PRIVATE overlap.f90 spher_polygon_area.f90
...
@@ -26,7 +26,7 @@ target_sources(test_overlap PRIVATE overlap.f90 spher_polygon_area.f90
target_sources
(
test_spher_polygon_area PRIVATE spher_polygon_area.f90
)
target_sources
(
test_spher_polygon_area PRIVATE spher_polygon_area.f90
)
target_sources
(
test_read_snapshot PRIVATE read_snapshot.f90 read_eddy.f90
target_sources
(
test_read_snapshot PRIVATE read_snapshot.f90 read_eddy.f90
read_grid.F90 config_graph.F90
)
read_grid.F90 config_graph.F90
)
target_sources
(
test_read_eddy PRIVATE read_eddy.f90
)
target_sources
(
test_read_eddy PRIVATE read_eddy.f90
read_grid.F90
)
if
(
MPI_Fortran_HAVE_F08_MODULE
)
if
(
MPI_Fortran_HAVE_F08_MODULE
)
target_sources
(
test_send_recv PRIVATE send_snapshot.f90 recv_snapshot.f90
target_sources
(
test_send_recv PRIVATE send_snapshot.f90 recv_snapshot.f90
...
...
This diff is collapsed.
Click to expand it.
Overlap/Tests/CMakeLists.txt
+
1
−
0
View file @
25cec1eb
...
@@ -25,6 +25,7 @@ add_executable(test_read_eddy test_read_eddy.f90
...
@@ -25,6 +25,7 @@ add_executable(test_read_eddy test_read_eddy.f90
${
PROJECT_SOURCE_DIR
}
/Inst_eddies/write_eddy.f90
)
${
PROJECT_SOURCE_DIR
}
/Inst_eddies/write_eddy.f90
)
target_link_libraries
(
test_read_eddy Shapelib_03::shapelib_03
target_link_libraries
(
test_read_eddy Shapelib_03::shapelib_03
Contour_531::contour_531 gpc_f Jumble::jumble
)
Contour_531::contour_531 gpc_f Jumble::jumble
)
target_compile_definitions
(
test_read_eddy PRIVATE CPP_SEQUENTIAL
)
if
(
MPI_Fortran_HAVE_F08_MODULE
)
if
(
MPI_Fortran_HAVE_F08_MODULE
)
# test_send_recv
# test_send_recv
...
...
This diff is collapsed.
Click to expand it.
Overlap/Tests/test_read_eddy.f90
+
3
−
1
View file @
25cec1eb
...
@@ -5,6 +5,7 @@ program test_read_eddy
...
@@ -5,6 +5,7 @@ program test_read_eddy
use
derived_types
,
only
:
eddy
,
shpc_slice_handler
use
derived_types
,
only
:
eddy
,
shpc_slice_handler
use
read_eddy_m
,
only
:
read_eddy
use
read_eddy_m
,
only
:
read_eddy
use
read_grid_m
,
only
:
read_grid
,
uniform_lon_lat
use
shpc_close_m
,
only
:
shpc_close
use
shpc_close_m
,
only
:
shpc_close
use
shpc_create_m
,
only
:
shpc_create
use
shpc_create_m
,
only
:
shpc_create
use
shpc_open_m
,
only
:
shpc_open
use
shpc_open_m
,
only
:
shpc_open
...
@@ -23,10 +24,11 @@ program test_read_eddy
...
@@ -23,10 +24,11 @@ program test_read_eddy
!-------------------------------------------------------------------------
!-------------------------------------------------------------------------
call
get_command_arg_dyn
(
1
,
shpc_dir
,
"Required argument: SHPC-directory"
)
call
get_command_arg_dyn
(
1
,
shpc_dir
,
"Required argument: SHPC-directory"
)
call
read_grid
(
rank
=
0
,
shpc_dir
=
shpc_dir
)
print
*
,
"Enter namelist main_nml."
print
*
,
"Enter namelist main_nml."
read
(
unit
=
*
,
nml
=
main_nml
)
read
(
unit
=
*
,
nml
=
main_nml
)
call
shpc_open
(
hshp_in
,
shpc_dir
,
cyclone
=
cyclone
,
slice
=
0
,
&
call
shpc_open
(
hshp_in
,
shpc_dir
,
cyclone
=
cyclone
,
slice
=
0
,
&
with_proj
=
.not.
grid
_lon_lat
,
pszaccess
=
"rb"
)
with_proj
=
.not.
uniform
_lon_lat
,
pszaccess
=
"rb"
)
call
read_eddy
(
e
,
k
,
eddy_i
,
hshp_in
,
ishape
)
call
read_eddy
(
e
,
k
,
eddy_i
,
hshp_in
,
ishape
)
call
shpc_create
(
hshp_out
,
shpc_dir
=
"SHPC"
,
cyclone
=
hshp_in
%
cyclone
,
&
call
shpc_create
(
hshp_out
,
shpc_dir
=
"SHPC"
,
cyclone
=
hshp_in
%
cyclone
,
&
slice
=
0
,
with_proj
=
.not.
grid_lon_lat
)
slice
=
0
,
with_proj
=
.not.
grid_lon_lat
)
...
...
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