Changeset 14261


Ignore:
Timestamp:
01/16/13 19:31:52 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: density not required anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/exp/expwrite.m

    r13730 r14261  
    1414%
    1515%   See also EXPDOC, EXPREAD, EXPWRITEASVERTICES
     16
     17%check input variable
     18if ~isstruct(a),
     19        error('first argument is not a structure');
     20end
     21
     22%Add density if it's not there
     23if ~isfield(a,'density'),
     24        for n=1:length(a),
     25                a(n).density=1;
     26        end
     27end
    1628
    1729fid=fopen(filename,'w');
Note: See TracChangeset for help on using the changeset viewer.