Changeset 27070


Ignore:
Timestamp:
06/16/22 17:15:44 (3 years ago)
Author:
Eric.Larour
Message:

CHG: better debugging info when things go south.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-SLPS2022/src/m/mesh/meshintersect3d.m

    r25685 r27070  
    4646                                if count>1000,
    4747                                        disp(['could not find a vertex matching vertex ' num2str(i) ' of input mesh!']);
    48                                         disp('Might think about changing tolerance increment');
    49                                         error('');
     48                                        figure(1), plot3(x,y,z,'.'); hold on; plot3(xs,ys,zs,'r.');
     49                                        error('Might think about changing tolerance increment');
     50                                        %use this figure to figure out what's going on:
    5051                                end
    5152                                tolerance=tolerance+tolincrement;
     
    5556                        if tolerance>maxtol,
    5657                                disp(['found matching vertices ' num2str(s) ' in output mesh for input mesh vertex ' num2str(i) ]);
    57                                 disp(' however, these vertices are farther that the max tolerance allowed!');
    58                                 error('');
     58                                error(' however, these vertices are farther that the max tolerance allowed!');
    5959                        end
    6060
Note: See TracChangeset for help on using the changeset viewer.