Ignore:
Timestamp:
Nov 29, 2018, 5:44:44 PM (5 years ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/filter_tps.m

    r1027 r1059  
    7979%% calculate tps coeff in each subdomain
    8080for isub=1:NbSubDomain
     81    isub
    8182    SubRange(1,:,isub)=[CentreX(isub)-0.55*Siz(1) CentreX(isub)+0.55*Siz(1)];%bounds of subdomain #isub in x coordinate
    8283    SubRange(2,:,isub)=[CentreY(isub)-0.55*Siz(2) CentreY(isub)+0.55*Siz(2)];%bounds of subdomain #isub in y coordinate
     
    8788        ind_sel_previous=ind_sel;% record the set of selected vector indices for next iteration
    8889        ind_sel=find(Coord(:,1)>=SubRange(1,1,isub) & Coord(:,1)<=SubRange(1,2,isub) & Coord(:,2)>=SubRange(2,1,isub) & Coord(:,2)<=SubRange(2,2,isub));
     90        numel(ind_sel)
    8991        % if no vector in the subdomain  #isub, skip the subdomain
    9092        if isempty(ind_sel)
Note: See TracChangeset for help on using the changeset viewer.