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
6723eee3
Commit
6723eee3
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Read `ishape_last.txt`
Instead of hard-coding a value.
parent
b740c192
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_read_snapshot.f90
+7
-2
7 additions, 2 deletions
Overlap/Tests/test_read_snapshot.f90
with
7 additions
and
2 deletions
Overlap/Tests/test_read_snapshot.f90
+
7
−
2
View file @
6723eee3
...
...
@@ -19,7 +19,7 @@ program test_read_snapshot
character
(
len
=
:),
allocatable
::
shpc_dir
type
(
snapshot
)
s
TYPE
(
shp_tr
)
hshp
integer
k1
,
copy
,
unit
integer
k1
,
copy
,
unit
,
ishape_last
real
::
corner_deg
(
2
)
=
[
0.125
,
-
59.875
]
! longitude and latitude of the corner of the whole grid in input
...
...
@@ -63,10 +63,15 @@ program test_read_snapshot
"test_read_snapshot dist_lim"
)
copy
=
merge
(
dist_lim
,
0
,
periodic
)
open
(
unit
,
file
=
shpc_dir
//
"/ishape_last.txt"
,
status
=
"old"
,
&
action
=
"read"
,
position
=
"rewind"
)
read
(
unit
,
fmt
=
*
)
ishape_last
! first date
close
(
unit
)
call
shp_tr_open
(
hshp
,
trim
(
shpc_dir
),
rank
=
0
)
call
dbf_read_attribute_03
(
k1
,
hshp
%
extremum
,
hshp
%
extr_date
,
ishape
=
0
)
call
read_snapshot
(
s
,
k1
,
hshp
,
corner_deg
*
deg_to_rad
,
&
step_deg
*
deg_to_rad
,
nlon
,
nlat
,
copy
,
k1
,
ishape_last
=
[
3
])
step_deg
*
deg_to_rad
,
nlon
,
nlat
,
copy
,
k1
,
[
ishape_last
])
CALL
shp_tr_close
(
hshp
)
call
write_snapshot
(
s
,
corner_deg
,
step_deg
,
nlon
,
nlat
,
copy
,
k1
)
...
...
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