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
c6f9247d
Commit
c6f9247d
authored
1 year ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Write to `speed.csv` instead of standard output
parent
c98ba595
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/set_max_speed.F90
+13
-4
13 additions, 4 deletions
Inst_eddies/set_max_speed.F90
with
13 additions
and
4 deletions
Inst_eddies/set_max_speed.F90
+
13
−
4
View file @
c6f9247d
...
...
@@ -18,6 +18,9 @@ contains
use
,
intrinsic
::
IEEE_ARITHMETIC
,
only
:
IEEE_IS_NAN
,
ieee_value
,
&
IEEE_QUIET_NAN
! Libraries:
use
jumble
,
only
:
new_unit
use
ccw_orient_m
,
only
:
ccw_orient
use
complete_ssh_m
,
only
:
complete_ssh
use
derived_types
,
only
:
eddy
,
null_ssh_contour
,
ssh_contour
,
missing_speed
...
...
@@ -63,7 +66,7 @@ contains
! Local:
real
,
allocatable
::
speed
(:)
! (n_cont) speed on the contour
integer
i
,
i_outer
integer
i
,
i_outer
,
unit
integer
sort_ssh
(
size
(
cont_list
))
! (n_max_cont)
! Sorts cont_list%ssh in ascending order. Defined only for
...
...
@@ -95,9 +98,15 @@ contains
end
do
#ifdef DEBUG
print
*
,
"set_max_speed: speed(sort_ssh) = "
,
speed
(
sort_ssh
(:
n_cont
))
print
*
,
"set_max_speed: cont_list%ssh(sort_ssh) = "
,
&
cont_list
(
sort_ssh
(:
n_cont
))
%
ssh
call
new_unit
(
unit
)
open
(
unit
,
file
=
"speed.csv"
,
status
=
"replace"
,
action
=
"write"
)
write
(
unit
,
fmt
=
*
)
"speed(sort_ssh) cont_list%ssh(sort_ssh)"
do
i
=
1
,
n_cont
write
(
unit
,
fmt
=
*
)
speed
(
sort_ssh
(
i
)),
cont_list
(
sort_ssh
(
i
))
%
ssh
end
do
close
(
unit
)
#endif
i
=
maxloc
(
abs
(
speed
),
dim
=
1
,
mask
=
.not.
IEEE_IS_NAN
(
speed
))
...
...
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