Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IPSL
LMD
InTro
RoutingPP
Commits
328dc536
Commit
328dc536
authored
Mar 16, 2020
by
Anthony
Browse files
Linkup new case : when the minimum hierarchy of a basin is in two different grid points
parent
8163e023
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
F90subroutines/routing_reg.f90
F90subroutines/routing_reg.f90
+12
-5
No files found.
F90subroutines/routing_reg.f90
View file @
328dc536
...
...
@@ -2291,13 +2291,20 @@ SUBROUTINE routing_reg_linkup(nbpt, neighbours, nwbas, basin_count, basin_area,
dop
=
minhloc
(
basin_id
(
sp
,
sb
),
1
)
bop
=
minhloc
(
basin_id
(
sp
,
sb
),
2
)
IF
((
dop
<
undef_int
)
.AND.
(
dop
.GT.
0
)
.AND.
(
bop
<
undef_int
)
.AND.
(
bop
.GT.
0
))
THEN
!basin_hierarchy(sp,sb) = basin_hierarchy(dop,bop)
CALL
routing_updateflow
(
sp
,
sb
,
dop
,
bop
,
nbpt
,
nwbas
,
nbxmax
*
8
,
outflow_grid
,
outflow_basin
,
&
&
inflow_number
,
inflow_grid
,
inflow_basin
)
found
=
1
WRITE
(
numout
,
*
)
"Lowest basin hierarchy in the neighbours grid points"
WRITE
(
numout
,
*
)
"hierarch of (sp,sb)"
,
basin_hierarchy
(
sp
,
sb
)
WRITE
(
numout
,
*
)
"Lowest basinid hierarch"
,
basin_hierarchy
(
dop
,
bop
)
! It is possible that the lowest hierarchy is in two grid cells
! In this case, if we have an error for this routing_updateflow
! We go to next step and make it a coastal flow
IF
(
outflow_basin
(
sp
,
sb
)
<
undef_int
)
THEN
found
=
1
WRITE
(
numout
,
*
)
"Lowest basin hierarchy in the neighbours grid points"
ELSE
WRITE
(
numout
,
*
)
"Lowest hierarchy may be in two different grid points"
END
IF
WRITE
(
numout
,
*
)
"hierarch of (sp,sb)"
,
basin_hierarchy
(
sp
,
sb
)
WRITE
(
numout
,
*
)
"Lowest basinid hierarch"
,
basin_hierarchy
(
dop
,
bop
)
END
IF
END
IF
END
DO
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment