Changeset 16757


Ignore:
Timestamp:
11/14/13 09:53:41 (11 years ago)
Author:
bdef
Message:

BUG: changing lenght in numel to check vector size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/paraview/exportVTK.m

    r16592 r16757  
    9999                %check which field is a real result and print
    100100                        for k=1:num_of_fields
    101                         if ((length(sol_struct{j}(timestep).(fieldnames{k})))== ...
     101                        if ((numel(sol_struct{j}(timestep).(fieldnames{k})))== ...
    102102                                        num_of_points);
    103103                                %paraview does not like NaN, replacing
     
    119119                num_of_fields=length(fieldnames);
    120120                for k=1:num_of_fields
    121                         if ((length(res_struct.(fieldnames{k})))==num_of_points);
     121                        if ((numel(res_struct.(fieldnames{k})))==num_of_points);
    122122                                %paraview does not like NaN, replacing
    123123                                pos=find(isnan(res_struct.(fieldnames{k})));
Note: See TracChangeset for help on using the changeset viewer.