Skip to content
Snippets Groups Projects
Commit ae16979e authored by Anthony's avatar Anthony
Browse files

Get the number of operation in the run.def file

parent 70d96a98
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ config=configparser.ConfigParser({'SaveWeights':'true', "DiagLon":"0.0, 0.0", "D ...@@ -20,6 +20,7 @@ config=configparser.ConfigParser({'SaveWeights':'true', "DiagLon":"0.0, 0.0", "D
config.read("run.def") config.read("run.def")
saveweights=config.get("OverAll", "SaveWeights") saveweights=config.get("OverAll", "SaveWeights")
nbasmax=int(config.getfloat("OverAll", "nbasmax")) nbasmax=int(config.getfloat("OverAll", "nbasmax"))
numop=int(config.getfloat("OverAll", "numop"))
OutGraphFile=config.get("OverAll","GraphFile") OutGraphFile=config.get("OverAll","GraphFile")
lonint=np.array(config.get("OverAll", "DiagLon").split(","),dtype=float) lonint=np.array(config.get("OverAll", "DiagLon").split(","),dtype=float)
latint=np.array(config.get("OverAll", "DiagLat").split(","),dtype=float) latint=np.array(config.get("OverAll", "DiagLat").split(","),dtype=float)
...@@ -207,7 +208,7 @@ comm.Barrier() ...@@ -207,7 +208,7 @@ comm.Barrier()
hsuper.dumpnetcdf(OutGraphFile.replace(".nc","_HydroSuper.nc"), gg, modelgrid, part) hsuper.dumpnetcdf(OutGraphFile.replace(".nc","_HydroSuper.nc"), gg, modelgrid, part)
print("Rank : {0} - Basin_count Before Truncate : ".format(part.rank), hsuper.basin_count) print("Rank : {0} - Basin_count Before Truncate : ".format(part.rank), hsuper.basin_count)
hs = TR(hsuper, part, comm, modelgrid, numop = 200) hs = TR(hsuper, part, comm, modelgrid, numop = numop)
print("Rank : {0} - Basin_count After Truncate : ".format(part.rank), hsuper.basin_count) print("Rank : {0} - Basin_count After Truncate : ".format(part.rank), hsuper.basin_count)
hgraph = IF.HydroGraph(nbasmax, hsuper, part, modelgrid) hgraph = IF.HydroGraph(nbasmax, hsuper, part, modelgrid)
......
...@@ -15,7 +15,11 @@ Documentation = true ...@@ -15,7 +15,11 @@ Documentation = true
# #
# Configuration for the graph to be generated # Configuration for the graph to be generated
# #
nbasmax = 100 nbasmax = 80
#
# Number of operation of simplification performed together
#
numop = 200
# #
# Output # Output
# #
......
...@@ -15,7 +15,11 @@ Documentation = true ...@@ -15,7 +15,11 @@ Documentation = true
# #
# Configuration for the graph to be generated # Configuration for the graph to be generated
# #
nbasmax = 50 nbasmax = 35
#
# Number of operation of simplification performed together
#
numop = 100
# #
# Output # Output
# #
......
...@@ -17,6 +17,10 @@ Documentation = true ...@@ -17,6 +17,10 @@ Documentation = true
# #
nbasmax = 35 nbasmax = 35
# #
# Number of operation of simplification performed together
#
numop = 200
#
# Output # Output
# #
GraphFile = MEDCORDEX_test_graph.nc GraphFile = MEDCORDEX_test_graph.nc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment