Commit ae16979e authored by Anthony's avatar Anthony
Browse files

Get the number of operation in the run.def file

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