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
502d4b90
Commit
502d4b90
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Write file `node_id_param.json`
Write file `node_id_param.json` from programs `test_overlap` and `eddy_graph`.
parent
c3052a2c
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/Tests/test_overlap.f90
+5
-0
5 additions, 0 deletions
Overlap/Tests/test_overlap.f90
Overlap/eddy_graph.f90
+8
-0
8 additions, 0 deletions
Overlap/eddy_graph.f90
Overlap/eddy_graph_in.sh
+2
-1
2 additions, 1 deletion
Overlap/eddy_graph_in.sh
with
15 additions
and
1 deletion
Overlap/Tests/test_overlap.f90
+
5
−
0
View file @
502d4b90
...
...
@@ -82,6 +82,11 @@ program test_overlap
e_overestim
=
maxval
([
ishape_last
(
1
)
+
1
,
ediff1d
(
ishape_last
)])
call
shpc_open
(
hshp
,
trim
(
shpc_dir
),
rank
=
0
)
call
dbf_read_attribute_03
(
d_init
,
hshp
%
extremum
,
hshp
%
extr_date
,
ishape
=
0
)
open
(
unit
,
file
=
"node_id_param.json"
,
status
=
"replace"
,
&
action
=
"write"
)
write
(
unit
,
fmt
=
*
)
'{"e_overestim": '
,
e_overestim
,
', "d_init": '
,
&
d_init
,
'}'
close
(
unit
)
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
,
&
...
...
This diff is collapsed.
Click to expand it.
Overlap/eddy_graph.f90
+
8
−
0
View file @
502d4b90
...
...
@@ -121,6 +121,14 @@ program eddy_graph
hshp
%
extr_date
,
ishape
=
0
)
call
ezmpi_bcast
(
d_init
,
root
=
0
)
if
(
rank
==
0
)
then
open
(
unit
,
file
=
"node_id_param.json"
,
status
=
"replace"
,
&
action
=
"write"
)
write
(
unit
,
fmt
=
*
)
'{"e_overestim": '
,
e_overestim
,
', "d_init": '
,
&
d_init
,
'}'
close
(
unit
)
end
if
! Open output files:
call
new_unit
(
unit_isolated
)
...
...
This diff is collapsed.
Click to expand it.
Overlap/eddy_graph_in.sh
+
2
−
1
View file @
502d4b90
...
...
@@ -33,4 +33,5 @@ $(sort --key=1 --numeric-sort edgelist_no_header.csv)
EOF
rm
edgelist_no_header.csv
echo
"Created files
\"
edgelist.csv
\"
and
\"
isolated_nodes.txt
\"
."
echo
"Created files
\"
edgelist.csv
\"
,
\"
isolated_nodes.txt
\"
and "
\
"
\"
node_id_param.json
\"
."
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