Commit 3ca17253 authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

Reduces the output of the weight calculations.

parent 692c2249
......@@ -164,9 +164,14 @@ class compweights :
self.lat = sub_lat
self.hpts = [l.shape[0] for l in self.lon]
self.maxhpts = max(self.hpts)
nboverlap=[]
overlaperr=[]
for icell in range(len(self.lon)) :
INFO(str(icell)+" Sum of overlap "+str(np.sum(self.area[icell])/modelgrid.area[icell])+
" Nb of Hydro grid overlaping : "+str(self.hpts[icell]))
nboverlap.append(self.hpts[icell])
overlaperr.append(np.sum(self.area[icell])/modelgrid.area[icell])
#
INFO(str(part.rank)+" Area Overlap error : "+str(min(overlaperr))+"-"+str(max(overlaperr))+\
" Nb of Hydro grid overlaping : "+str(min(self.hpts))+"-"+str(max(self.hpts)) )
#
self.dumpweights(wfile, part, modelgrid, hydrogrid)
#
......
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