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
664f62bb
Commit
664f62bb
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Redefine `k_test_[12]` as date indices
Redefine `k_test_[12]` as date indices (0-based) instead of dates.
parent
62d0f068
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
Overlap/Tests/test_overlap.f90
+6
-6
6 additions, 6 deletions
Overlap/Tests/test_overlap.f90
with
6 additions
and
6 deletions
Overlap/Tests/test_overlap.f90
+
6
−
6
View file @
664f62bb
...
...
@@ -22,7 +22,7 @@ program test_overlap
character
(
len
=
:),
allocatable
::
shpc_dir
integer
d_init
integer
::
k_test_1
=
20454
,
k_test_2
=
20455
integer
::
k_test_1
=
0
,
k_test_2
=
1
integer
unit
,
i
,
copy
,
rank
,
n_proc
integer
,
allocatable
::
ishape_last
(:)
type
(
snapshot
),
allocatable
::
flow
(:)
! (max_delta + 1)
...
...
@@ -81,10 +81,10 @@ program test_overlap
call
read_column
(
ishape_last
,
file
=
trim
(
shpc_dir
)
//
"/ishape_last.txt"
)
call
shpc_open
(
hshp
,
trim
(
shpc_dir
),
rank
=
0
)
call
dbf_read_attribute_03
(
d_init
,
hshp
%
extremum
,
hshp
%
extr_date
,
ishape
=
0
)
call
read_snapshot
(
flow
(
1
),
hshp
,
nlon
,
nlat
,
d_init
,
k_test_1
-
d_init
,
&
call
read_snapshot
(
flow
(
1
),
hshp
,
nlon
,
nlat
,
d_init
,
k_test_1
,
corner
,
&
step
,
copy
,
ishape_last
)
call
read_snapshot
(
flow
(
max_delta
+
1
),
hshp
,
nlon
,
nlat
,
d_init
,
k_test_2
,
&
corner
,
step
,
copy
,
ishape_last
)
call
read_snapshot
(
flow
(
max_delta
+
1
),
hshp
,
nlon
,
nlat
,
d_init
,
&
k_test_2
-
d_init
,
corner
,
step
,
copy
,
ishape_last
)
CALL
shpc_close
(
hshp
)
print
*
,
"Enter flow(1)%list_vis%delta_out (array with "
,
&
flow
(
1
)
%
number_vis_extr
,
" values):"
...
...
@@ -103,8 +103,8 @@ program test_overlap
call
shpc_create
(
hshp
,
shpc_dir
=
"SHPC"
,
cyclone
=
hshp
%
cyclone
)
call
init_interpolated_eddy
call
overlap
(
flow
,
nlon
,
nlat
,
periodic
,
dist_lim
,
hshp
,
d
=
k_test_2
,
&
delta
=
max_delta
,
j
=
max_delta
+
1
)
call
overlap
(
flow
,
nlon
,
nlat
,
periodic
,
dist_lim
,
hshp
,
&
d
=
d_init
+
k_test_2
,
delta
=
max_delta
,
j
=
max_delta
+
1
)
close
(
unit_edge
)
print
*
,
'Created file "edgelist.csv".'
CALL
shpc_close
(
hshp
)
...
...
This diff is collapsed.
Click to expand it.
GUEZ Lionel
@guez
mentioned in commit
0fd9aed5
·
3 years ago
mentioned in commit
0fd9aed5
mentioned in commit 0fd9aed53ae8cda7b5993cd624e873f5ab20335c
Toggle commit list
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