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
22c42e1c
Commit
22c42e1c
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Add argument `shp_tr_dir` to `write_aux`
Preparing for two collections of shapefiles.
parent
6aa508b3
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/inst_eddies.f90
+2
-1
2 additions, 1 deletion
Inst_eddies/inst_eddies.f90
Inst_eddies/write_aux.f90
+4
-3
4 additions, 3 deletions
Inst_eddies/write_aux.f90
with
6 additions
and
4 deletions
Inst_eddies/inst_eddies.f90
+
2
−
1
View file @
22c42e1c
...
...
@@ -184,6 +184,7 @@ program inst_eddies
CALL
shp_tr_close
(
hshp
)
print
*
,
'Created shapefiles in SHP_triplet.'
call
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
s
%
number_vis_extr
)
call
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
s
%
number_vis_extr
,
&
shp_tr_dir
=
"SHP_triplet"
)
end
program
inst_eddies
This diff is collapsed.
Click to expand it.
Inst_eddies/write_aux.f90
+
4
−
3
View file @
22c42e1c
...
...
@@ -4,7 +4,7 @@ module write_aux_m
contains
subroutine
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
n_shapes
)
subroutine
write_aux
(
corner_deg
,
step_deg
,
nlon
,
nlat
,
n_shapes
,
shp_tr_dir
)
! Write auxiliary files "grid_nml.txt" and "ishape_last.txt".
...
...
@@ -27,6 +27,7 @@ contains
! the grid is global
integer
,
intent
(
in
)::
n_shapes
character
(
len
=
*
),
intent
(
in
)::
shp_tr_dir
! Local:
namelist
/
grid_nml
/
corner_deg
,
step_deg
,
nlon
,
nlat
...
...
@@ -35,12 +36,12 @@ contains
!--------------------------------------------------------------------
call
new_unit
(
unit
)
open
(
unit
,
file
=
"SHP_triplet
/grid_nml.txt"
,
status
=
"replace"
,
&
open
(
unit
,
file
=
shp_tr_dir
//
"
/grid_nml.txt"
,
status
=
"replace"
,
&
action
=
"write"
)
write
(
unit
,
nml
=
grid_nml
)
close
(
unit
)
open
(
unit
,
file
=
"SHP_triplet
/ishape_last.txt"
,
status
=
"replace"
,
&
open
(
unit
,
file
=
shp_tr_dir
//
"
/ishape_last.txt"
,
status
=
"replace"
,
&
action
=
"write"
)
write
(
unit
,
fmt
=
*
)
n_shapes
-
1
close
(
unit
)
...
...
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