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
and
there
.
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
e308ded6
"NPSimulation/Detectors/Nebula/Nebula.cc" did not exist on "50dff98c4f4ad6dfd795a71791efdfb2a90554a8"
Commit
e308ded6
authored
2 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Open or create shapefiles before computation
parent
7e171939
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
Inst_eddies/inst_eddies.f90
+13
-10
13 additions, 10 deletions
Inst_eddies/inst_eddies.f90
with
13 additions
and
10 deletions
Inst_eddies/inst_eddies.f90
+
13
−
10
View file @
e308ded6
...
@@ -24,7 +24,7 @@ program inst_eddies
...
@@ -24,7 +24,7 @@ program inst_eddies
type
(
snapshot
)
s
type
(
snapshot
)
s
TYPE
(
shpc_slice_handler
)
hshpc_cyclo
,
hshpc_anti
TYPE
(
shpc_slice_handler
)
hshpc_cyclo
,
hshpc_anti
integer
i
,
date
integer
i
,
date
,
iostat
integer
unit
integer
unit
integer
nlon
,
nlat
integer
nlon
,
nlat
...
@@ -83,6 +83,18 @@ program inst_eddies
...
@@ -83,6 +83,18 @@ program inst_eddies
call
input_ssh
(
corner
,
step
,
nlon
,
nlat
,
periodic
,
ssh
,
u
,
v
,
corner_deg
,
&
call
input_ssh
(
corner
,
step
,
nlon
,
nlat
,
periodic
,
ssh
,
u
,
v
,
corner_deg
,
&
step_deg
)
step_deg
)
! Open or create now so we test the existence of directories:
call
shpc_open
(
hshpc_cyclo
,
shpc_dir
=
"SHPC_cyclo"
,
pszaccess
=
"rb+"
,
&
iostat
=
iostat
)
if
(
iostat
==
0
)
then
call
shpc_open
(
hshpc_anti
,
shpc_dir
=
"SHPC_anti"
,
pszaccess
=
"rb+"
)
else
call
shpc_create
(
hshpc_cyclo
,
shpc_dir
=
"SHPC_cyclo"
,
cyclone
=
.true.
)
call
shpc_create
(
hshpc_anti
,
shpc_dir
=
"SHPC_anti"
,
cyclone
=
.false.
)
end
if
call
cpu_time
(
t1
)
call
cpu_time
(
t1
)
write
(
unit
,
fmt
=
*
)
"CPU time for input, before computation:"
,
t1
-
t0
,
"s"
write
(
unit
,
fmt
=
*
)
"CPU time for input, before computation:"
,
t1
-
t0
,
"s"
t0
=
t1
t0
=
t1
...
@@ -133,15 +145,6 @@ program inst_eddies
...
@@ -133,15 +145,6 @@ program inst_eddies
t0
=
t1
t0
=
t1
! Write snapshot:
! Write snapshot:
if
(
exist
)
then
call
shpc_open
(
hshpc_cyclo
,
shpc_dir
=
"SHPC_cyclo"
,
pszaccess
=
"rb+"
)
call
shpc_open
(
hshpc_anti
,
shpc_dir
=
"SHPC_anti"
,
pszaccess
=
"rb+"
)
else
call
shpc_create
(
hshpc_cyclo
,
shpc_dir
=
"SHPC_cyclo"
,
cyclone
=
.true.
)
call
shpc_create
(
hshpc_anti
,
shpc_dir
=
"SHPC_anti"
,
cyclone
=
.false.
)
end
if
call
write_snapshot
(
s
,
hshpc_cyclo
,
hshpc_anti
,
date
)
call
write_snapshot
(
s
,
hshpc_cyclo
,
hshpc_anti
,
date
)
call
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
hshpc_cyclo
,
exist
)
call
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
hshpc_cyclo
,
exist
)
call
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
hshpc_anti
,
exist
)
call
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
hshpc_anti
,
exist
)
...
...
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