Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RoutingPP
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
Container Registry
Model registry
Operate
Environments
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
InTro
RoutingPP
Commits
d64427ec
Commit
d64427ec
authored
4 years ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Truncate : anticipating loop errors and handling HTUs flowing out of the domain
parent
711419e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
F90subroutines/routing_interface.f90
+17
-1
17 additions, 1 deletion
F90subroutines/routing_interface.f90
F90subroutines/routing_reg.f90
+1
-1
1 addition, 1 deletion
F90subroutines/routing_reg.f90
with
18 additions
and
2 deletions
F90subroutines/routing_interface.f90
+
17
−
1
View file @
d64427ec
...
...
@@ -581,7 +581,7 @@ SUBROUTINE killbas(nbpt, nbxmax_in, nbasmax, nwbas,ops, tokill, totakeover, numo
INTEGER
(
i_std
),
DIMENSION
(
nbpt
,
nbxmax_in
,
nbxmax_in
),
INTENT
(
inout
)
::
inflow_grid
!!
!! LOCAL
INTEGER
(
i_std
)
::
ib
,
op
,
tok
,
totak
INTEGER
(
i_std
)
::
ib
,
op
,
tok
,
totak
,
igrif
,
ibasf
DO
ib
=
1
,
nbpt
...
...
@@ -591,6 +591,22 @@ SUBROUTINE killbas(nbpt, nbxmax_in, nbasmax, nwbas,ops, tokill, totakeover, numo
totak
=
totakeover
(
ib
,
op
)
IF
(
tok
.GT.
0
)
THEN
WRITE
(
numout
,
*
)
"nbpt"
,
ib
,
"tokill"
,
tok
,
"totakover"
,
totak
! Test if tokill is downstream of totakeover (avoid loop)
igrif
=
outflow_grid
(
ib
,
totak
)
ibasf
=
outflow_basin
(
ib
,
totak
)
DO
WHILE
(
igrif
>
0
)
IF
((
igrif
.EQ.
ib
)
.AND.
(
ibasf
.EQ.
tok
))
THEN
!CALL ipslerr_p(3,'killbas','tokill is downstream totakeover','','')
igrif
=
0
it
=
totak
totak
=
tok
tok
=
it
ELSE
it
=
outflow_grid
(
igrif
,
ibasf
)
ibasf
=
outflow_basin
(
igrif
,
ibasf
)
igrif
=
it
END
IF
END
DO
CALL
routing_reg_killbas
(
nbpt
,
ib
,
tok
,
totak
,
nwbas
,
basin_count
,
basin_area
,
basin_cg
,
basin_topoind
,&
&
fetch_basin
,
basin_id
,
basin_coor
,
basin_type
,
basin_flowdir
,
outflow_grid
,
outflow_basin
,
inflow_number
,&
&
inflow_grid
,
inflow_basin
)
...
...
This diff is collapsed.
Click to expand it.
F90subroutines/routing_reg.f90
+
1
−
1
View file @
d64427ec
...
...
@@ -1059,7 +1059,7 @@ CONTAINS
!
!! LOCAL VARIABLES
REAL
(
r_std
),
PARAMETER
::
flag
=
-9999.
!!
LOGICAL
,
PARAMETER
::
debug
=
.
TRU
E.
LOGICAL
,
PARAMETER
::
debug
=
.
FALS
E.
LOGICAL
,
PARAMETER
::
checkgrid
=
.FALSE.
CHARACTER
(
LEN
=
7
)
::
fmt
!!
CHARACTER
(
LEN
=
9
)
::
fmtr
!!
...
...
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