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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
IPSL
LMD
InTro
RoutingPP
Commits
c51869d2
Commit
c51869d2
authored
Sep 17, 2021
by
POLCHER Jan
🚴🏾
Browse files
Merge branch 'newdivbas' of gitlab.in2p3.fr:ipsl/lmd/intro/routingpp into newdivbas
parents
e13e7e14
ed6ac3c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
F90subroutines/routing_reg.f90
F90subroutines/routing_reg.f90
+11
-1
No files found.
F90subroutines/routing_reg.f90
View file @
c51869d2
...
...
@@ -2868,6 +2868,10 @@ SUBROUTINE routing_reg_linkup(nbpt, neighbours, nwbas, ijdimmax, inflowmax, basi
DO
sp
=
1
,
nbpt
!
DO
sb
=
1
,
basin_count
(
sp
)
IF
(
debug
)
THEN
WRITE
(
numout
,
*
)
""
WRITE
(
numout
,
*
)
"***"
,
sp
,
sp
,
"***"
END
IF
!
! We only work on this point if it does not flow into the ocean
! or flow to another sub-basin in the same grid box.
...
...
@@ -2888,12 +2892,18 @@ SUBROUTINE routing_reg_linkup(nbpt, neighbours, nwbas, ijdimmax, inflowmax, basi
bop
=
outflow_basin
(
sp
,
sb
)
CALL
routing_updateflow
(
sp
,
sb
,
sp
,
bop
,
nbpt
,
nwbas
,
inflowmax
,
outflow_grid
,
outflow_basin
,
&
&
inflow_number
,
inflow_grid
,
inflow_basin
)
IF
(
outflow_basin
(
sp
,
sb
)
==
bop
)
THEN
IF
(
(
outflow_basin
(
sp
,
sb
)
==
bop
)
.AND.
(
outflow_grid
(
sp
,
sb
)
==
sp
))
THEN
found
=
1
solved
(
sp
,
1
)
=
solved
(
sp
,
1
)
+
1
IF
(
debug
)
WRITE
(
numout
,
*
)
sp
,
sb
,
"flows in the same grid !"
ELSE
WRITE
(
numout
,
*
)
sp
,
sb
,
"flows in the same grid but has an error !"
! We have to set a outflow_grid to avoid error, we use the
! same grid point
! We also have to change outflow_basin so it is not
! considered as a corrected linkup HTU
outflow_grid
(
sp
,
sb
)
=
sp
outflow_basin
(
sp
,
sb
)
=
nwbas
+
1
ENDIF
!
ELSE
IF
(
outflow_grid
(
sp
,
sb
)
.EQ.
-3
)
THEN
...
...
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