diff --git a/RPPtools.py b/RPPtools.py index d5678e1a5d034a78ae63fa9ccfe728afe1793418..5f9bbac0b0c279a815a3f9f570555e9ac359cfc2 100644 --- a/RPPtools.py +++ b/RPPtools.py @@ -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) #