File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 155155 tsplits = [ta ;tb ];
156156end
157157
158- tsplits = sort(unique (tsplits ),' ascend' );
158+ tsplits = sort(uniquetol (tsplits , eps ),' ascend' );
159159lab = length(tsplits );
160160if (lab - 1 > nchmax )
161161 error([' CHUNKERFUNC: nchmax exceeded in chunkerfunc on initial splits.\n ' ,...
184184
185185maxiter_res= nchmax - nch ;
186186
187+ xmin = Inf ;
188+ xmax = - Inf ;
189+ ymin = Inf ;
190+ ymax = - Inf ;
191+
187192rad_curr = 0 ;
188193for ijk = 1 : maxiter_res
189194
190195% loop through all existing chunks, if resolved store, if not split
191- xmin = Inf ;
192- xmax = - Inf ;
193- ymin = Inf ;
194- ymax = - Inf ;
195196
196197 ifdone= 1 ;
197198 for ich= 1 : nchnew
224225
225226 resol_speed_test = err1 > eps ;
226227 if nout < 2
227- resol_speed_test = err1 > eps * k ;
228+ resol_speed_test = err1 *( b - a ) > eps * k ;
228229 end
229230
230231 xmax = max(xmax ,max(r(1 ,: )));
You can’t perform that action at this time.
0 commit comments