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
358a06fc
Commit
358a06fc
authored
4 years ago
by
POLCHER Jan
Browse files
Options
Downloads
Patches
Plain Diff
Make the dumpnetcdf of HydroSuper optional. It consumes too much memory.
parent
52fbfd11
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Interface.py
+1
-0
1 addition, 0 deletions
Interface.py
RoutingPreProc.py
+4
-1
4 additions, 1 deletion
RoutingPreProc.py
with
5 additions
and
1 deletion
Interface.py
+
1
−
0
View file @
358a06fc
...
...
@@ -6,6 +6,7 @@ import pickle
from
netCDF4
import
Dataset
import
RPPtools
as
RPP
from
mpi4py
import
MPI
import
gc
#
import
sys
from
inspect
import
currentframe
,
getframeinfo
...
...
This diff is collapsed.
Click to expand it.
RoutingPreProc.py
+
4
−
1
View file @
358a06fc
...
...
@@ -20,6 +20,7 @@ config.read("run.def")
nbasmax
=
config
.
getint
(
"
OverAll
"
,
"
nbasmax
"
)
numop
=
config
.
getint
(
"
OverAll
"
,
"
numop
"
)
OutGraphFile
=
config
.
get
(
"
OverAll
"
,
"
GraphFile
"
)
DumpHydroSuper
=
config
.
getboolean
(
"
OverAll
"
,
"
DumpHydroSuper
"
,
fallback
=
False
)
lonint
=
np
.
array
(
config
.
get
(
"
OverAll
"
,
"
DiagLon
"
).
split
(
"
,
"
),
dtype
=
float
)
latint
=
np
.
array
(
config
.
get
(
"
OverAll
"
,
"
DiagLat
"
).
split
(
"
,
"
),
dtype
=
float
)
#
...
...
@@ -138,7 +139,9 @@ t1 = time.time()
print
(
"
Time for fetch: {:0.2f} s.
"
.
format
(
t1
-
t
))
comm
.
Barrier
()
hsuper
.
dumpnetcdf
(
OutGraphFile
.
replace
(
"
.nc
"
,
"
_HydroSuper.nc
"
),
gg
,
modelgrid
,
part
)
if
DumpHydroSuper
:
print
(
"
Dumping HydroSuper
"
)
hsuper
.
dumpnetcdf
(
OutGraphFile
.
replace
(
"
.nc
"
,
"
_HydroSuper.nc
"
),
gg
,
modelgrid
,
part
)
print
(
"
Rank : {0} - Basin_count Before Truncate :
"
.
format
(
part
.
rank
),
hsuper
.
basin_count
)
hs
=
TR
(
hsuper
,
part
,
comm
,
modelgrid
,
numop
=
numop
)
...
...
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