Skip to content
Snippets Groups Projects
Commit 3ca17253 authored by POLCHER Jan's avatar POLCHER Jan :bicyclist_tone4:
Browse files

Reduces the output of the weight calculations.

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